C# 클래스 IronPigeon.Dart.PostalService

An email sending and receiving service.
파일 보기 프로젝트 열기: AArnott/IronPigeon

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
FromPayload ( Channel payloadReceipt ) : MessageReceipt

Extracts a message from its serialized payload wrapper.

메소드 상세

DeleteAsync() 공개 메소드

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.
리턴 Task

PostAsync() 공개 메소드

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.
리턴 Task>

PostalService() 공개 메소드

Initializes a new instance of the PostalService class.
public PostalService ( ) : System
리턴 System

PostalService() 공개 메소드

Initializes a new instance of the PostalService class.
public PostalService ( Channel channel ) : System
channel Channel The channel.
리턴 System

ReceiveAsync() 공개 메소드

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.
리턴 Task>