Click or drag to resize
MimeKit

IMailServiceNoOp Method

Ping the message service to keep the connection alive.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
void NoOp(
	CancellationToken cancellationToken = default
)

Parameters

cancellationToken  CancellationToken  (Optional)
The cancellation token.
Exceptions
ExceptionCondition
ObjectDisposedException The IMailService has been disposed.
ServiceNotConnectedException The IMailService is not connected.
OperationCanceledException The operation was canceled via the cancellation token.
IOException An I/O error occurred.
CommandException The command was rejected by the mail server.
ProtocolException The server responded with an unexpected token.
Remarks
Mail servers, if left idle for too long, will automatically drop the connection.
See Also