Click or drag to resize
MimeKit

IProtocolLoggerLogServer Method

Logs a sequence of bytes sent by the server.

Namespace:  MailKit
Assembly:  MailKit (in MailKit.dll) Version: 3.0.0
Syntax
C#
void LogServer(
	byte[] buffer,
	int offset,
	int count
)

Parameters

buffer
Type: SystemByte
The buffer to log.
offset
Type: SystemInt32
The offset of the first byte to log.
count
Type: SystemInt32
The number of bytes to log.
Exceptions
ExceptionCondition
ArgumentNullExceptionbuffer is null.
ArgumentOutOfRangeException

offset is less than zero or greater than the length of buffer.

-or-

The buffer is not large enough to contain count bytes strting at the specified offset.

ObjectDisposedException The logger has been disposed.
IOException An I/O error occurred.
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.

See Also