IAsyncPop3Client.GetMessageSizeAsync

GetMessageSizeAsync(string, IConnection, CancellationToken)

Gets the size of the message

public Task<long> GetMessageSizeAsync(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 size

See Also


GetMessageSizeAsync(int, IConnection, CancellationToken)

Gets the size of the message

public Task<long> GetMessageSizeAsync(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 size

See Also