C# Class IronPigeon.OwnEndpointServices

Afficher le fichier Open project: AArnott/IronPigeon

Méthodes publiques

Méthode Description
CreateAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task

Generates a new receiving endpoint.

Depending on the length of the keys set in the provider and the amount of buffered entropy in the operating system, this method can take an extended period (several seconds) to complete. This method merely moves all the work to a threadpool thread.

OwnEndpointServices ( ) : System

Initializes a new instance of the OwnEndpointServices class.

OwnEndpointServices ( Channel channel, ICloudBlobStorageProvider cloudBlobStorage, HttpClient httpClient, IEndpointInboxFactory endpointInboxFactory ) : System

Initializes a new instance of the OwnEndpointServices class.

PublishAddressBookEntryAsync ( OwnEndpoint endpoint, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Saves the information required to send this channel messages to the blob store, and returns the URL to share with senders.

Private Methods

Méthode Description
CreateEndpointWithKeys ( CancellationToken cancellationToken ) : OwnEndpoint

Generates a new receiving endpoint.

Depending on the length of the keys set in the provider and the amount of buffered entropy in the operating system, this method can take an extended period (several seconds) to complete.

Method Details

CreateAsync() public méthode

Generates a new receiving endpoint.
Depending on the length of the keys set in the provider and the amount of buffered entropy in the operating system, this method can take an extended period (several seconds) to complete. This method merely moves all the work to a threadpool thread.
public CreateAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken System.Threading.CancellationToken The cancellation token.
Résultat Task

OwnEndpointServices() public méthode

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

OwnEndpointServices() public méthode

Initializes a new instance of the OwnEndpointServices class.
public OwnEndpointServices ( Channel channel, ICloudBlobStorageProvider cloudBlobStorage, HttpClient httpClient, IEndpointInboxFactory endpointInboxFactory ) : System
channel Channel The channel.
cloudBlobStorage ICloudBlobStorageProvider The cloud blob storage provider.
httpClient System.Net.Http.HttpClient The HTTP client.
endpointInboxFactory IEndpointInboxFactory The endpoint inbox factory.
Résultat System

PublishAddressBookEntryAsync() public méthode

Saves the information required to send this channel messages to the blob store, and returns the URL to share with senders.
public PublishAddressBookEntryAsync ( OwnEndpoint endpoint, CancellationToken cancellationToken = default(CancellationToken) ) : Task
endpoint OwnEndpoint The endpoint for which an address book entry should be created and published.
cancellationToken System.Threading.CancellationToken A cancellation token to abort the publish.
Résultat Task