IProtocol LoggerLog Server Method
Logs a sequence of bytes sent by the server.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
void LogServer(
byte[] buffer,
int offset,
int count
)Parameters
Remarks
Logs a sequence of bytes sent by the server.
LogServer(Byte, Int32, Int32) is called by the IMailService upon every successful read of its underlying network stream with the exact buffer that was read.
Exceptions
| ArgumentNullException | buffer is . |
| ArgumentOutOfRangeException |
offset is less than zero or greater than the length of buffer. -or- The buffer is not large enough to contain count bytes starting at the specified offset. |
| ObjectDisposedException | The logger has been disposed. |
| IOException | An I/O error occurred. |