IAsyncPop3Client.FetchMessageAsync

FetchMessageAsync(string, IConnection, CancellationToken)

Fetches the message

public Task<MailMessage> FetchMessageAsync(string uniqueId, IConnection connection = null, 
    CancellationToken token = default)
ParameterTypeDescription
connectionStringConnection to a server
uniqueIdIConnectionThe unique id of the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

The message

See Also


FetchMessageAsync(int, IConnection, CancellationToken)

Fetches the message

public Task<MailMessage> FetchMessageAsync(int sequenceNumber, IConnection connection = null, 
    CancellationToken token = default)
ParameterTypeDescription
connectionInt32Connection to a server
sequenceNumberIConnectionThe sequence number of the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

The message

See Also