C# Class IronPigeon.Dart.PostalService

An email sending and receiving service.
Afficher le fichier Open project: AArnott/IronPigeon

Méthodes publiques

Méthode Description
DeleteAsync ( Message message, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Deletes the specified message from its online inbox so it won't be retrieved again.

PostAsync ( Message message, IProgress bytesCopiedProgress = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task>

Sends the specified dart to the recipients specified in the message.

PostalService ( ) : System

Initializes a new instance of the PostalService class.

PostalService ( Channel channel ) : System

Initializes a new instance of the PostalService class.

ReceiveAsync ( bool longPoll = false, bool purgeUnsupportedMessages = false, IProgress progress = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task>

Retrieves all messages waiting for pickup at our endpoint.

Private Methods

Méthode Description
FromPayload ( Channel payloadReceipt ) : MessageReceipt

Extracts a message from its serialized payload wrapper.

Method Details

DeleteAsync() public méthode

Deletes the specified message from its online inbox so it won't be retrieved again.
public DeleteAsync ( Message message, CancellationToken cancellationToken = default(CancellationToken) ) : Task
message Message The message to delete from its online location.
cancellationToken System.Threading.CancellationToken The cancellation token.
Résultat Task

PostAsync() public méthode

Sends the specified dart to the recipients specified in the message.
public PostAsync ( Message message, IProgress bytesCopiedProgress = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task>
message Message The dart to send.
bytesCopiedProgress IProgress Progress feedback in terms of bytes uploaded.
cancellationToken System.Threading.CancellationToken The cancellation token.
Résultat Task>

PostalService() public méthode

Initializes a new instance of the PostalService class.
public PostalService ( ) : System
Résultat System

PostalService() public méthode

Initializes a new instance of the PostalService class.
public PostalService ( Channel channel ) : System
channel Channel The channel.
Résultat System

ReceiveAsync() public méthode

Retrieves all messages waiting for pickup at our endpoint.
public ReceiveAsync ( bool longPoll = false, bool purgeUnsupportedMessages = false, IProgress progress = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task>
longPoll bool if set to true [long poll].
purgeUnsupportedMessages bool A value indicating whether to purge any messages that are not Dart messages. False will skip the messages but will not delete them from the server.
progress IProgress A callback to invoke for each downloaded message as it arrives.
cancellationToken System.Threading.CancellationToken The cancellation token.
Résultat Task>