Click or drag to resize
MimeKit

ProtocolLoggerLogClient Method

Logs a sequence of bytes sent by the client.

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

Parameters

buffer  Byte
The buffer to log.
offset  Int32
The offset of the first byte to log.
count  Int32
The number of bytes to log.

Implements

IProtocolLoggerLogClient(Byte, Int32, Int32)
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 client.

LogClient(Byte, Int32, Int32) is called by the IMailService upon every successful write operation to its underlying network stream, passing the exact same buffer, offset, and count arguments to the logging function.

See Also