Click or drag to resize
MimeKit

MimeReaderOnBodySeparatorAsync Method

Called when the body separator is encountered in the stream.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.12.0
Syntax
C#
protected virtual Task OnBodySeparatorAsync(
	long beginOffset,
	int lineNumber,
	long endOffset,
	CancellationToken cancellationToken
)

Parameters

beginOffset  Int64
The offset into the stream where the body separator began.
lineNumber  Int32
The line number where the body separator was found.
endOffset  Int64
The offset into the stream where the body separator ended.
cancellationToken  CancellationToken
The cancellation token.

Return Value

Task
An asynchronous task context.
Remarks

Called when the body separator is encountered in the stream.

This method is always called before OnHeadersEndAsync(Int64, Int32, Int64, Int32, CancellationToken) if a body separator is found.

See Also