Click or drag to resize
MimeKit

SecureMimeContextDecompressToAsync Method

Asynchronously decompress the specified stream to an output stream.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public virtual Task DecompressToAsync(
	Stream stream,
	Stream output,
	CancellationToken cancellationToken = default
)

Parameters

stream  Stream
The stream to decompress.
output  Stream
The output stream.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

Task
An asynchronous task context.

Implements

ISecureMimeContextDecompressToAsync(Stream, Stream, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullException

stream is null.

-or-

output is null.

OperationCanceledException The operation was canceled via the cancellation token.
CmsException An error occurred in the cryptographic message syntax subsystem.
Remarks
Asynchronously decompresses the specified stream to an output stream.
See Also