C# Class IronPigeon.OwnEndpointServices

显示文件 Open project: AArnott/IronPigeon

Public Methods

Method 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

Method 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 method

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.
return Task

OwnEndpointServices() public method

Initializes a new instance of the OwnEndpointServices class.
public OwnEndpointServices ( ) : System
return System

OwnEndpointServices() public method

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.
return System

PublishAddressBookEntryAsync() public method

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.
return Task