LogEntryContextInfo Property
Gets the string containing fully-qualified name of the current context.

Namespace: MailBee
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public string ContextInfo { get; }

Property Value

Type: String
The string containing dot-separated names of all MailBee contexts which participate in the current operation.

This property is useful when using the Smtp component. Unlike Pop3 and Imap components, Smtp component can operate in multiple contexts

When Pop3 component is used, the context is always POP3.

However, when Smtp component is used, the context may be somewhat like SEND-00.SMTP-04, which indicates the component is sending a mail message using multiple threads, and the current log entry corresponds to thread #4 (starting from zero). Another example is SEND-00.SMTP-00.POP3 which means the component currently operates in send mail mode, the connection to SMTP server on thread #0 is in progress, and POP-before-SMTP authentication is currently performed as a part of this connection procedure.

ContextInfo value is especially useful when Smtp component operates in multi-thread mode (MaxThreadCount is not 1). In this case, many log entries are simultaneously added into the log by multiple threads. In this case, ContextInfo allows the person who's viewing the log to group the log entries by their ContextInfo values.

See Also