Mime ParserOn Mime Message End Async Method
Called when the end of a message is encountered in the stream.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
An asynchronous task context.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
protected virtual Task OnMimeMessageEndAsync(
long beginOffset,
int beginLineNumber,
long headersEndOffset,
long endOffset,
int lines,
CancellationToken cancellationToken
)Parameters
- beginOffset Int64
- The offset into the stream where the message began.
- beginLineNumber Int32
- The line number where the message began.
- headersEndOffset Int64
- The offset into the stream where the message headers ended and the content began.
- endOffset Int64
- The offset into the stream where the message ended.
- lines Int32
- The length of the message as measured in lines.
- cancellationToken CancellationToken
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Remarks
Called when the end of a message is encountered in the stream.
This method is always paired with a corresponding call to OnMimeMessageBeginAsync(Int64, Int32, CancellationToken).