NullProtocolLogger Class

A protocol logger that does not log to anywhere.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public sealed class NullProtocolLogger : IProtocolLogger, 
	IDisposable
Inheritance
Object    NullProtocolLogger
Implements
IProtocolLogger, IDisposable

Remarks

By default, the SmtpClient, Pop3Client, and ImapClient all use a NullProtocolLogger.

Constructors

NullProtocolLogger Initializes a new instance of the NullProtocolLogger class.

Properties

AuthenticationSecretDetector Get or set the authentication secret detector.

Methods

Dispose Releases all resource used by the NullProtocolLogger object.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
LogClient Logs a sequence of bytes sent by the client.
LogConnect Logs a connection to the specified URI.
LogServer Logs a sequence of bytes sent by the server.
ToString Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference