C# Class IronPigeon.OnlineAddressBook

Retrieves contacts from some online store.
This class does not describe a method for publishing to an address book because each address book may have different authentication requirements. Derived types are expected to be thread-safe.
Inheritance: AddressBook
显示文件 Open project: AArnott/IronPigeon

Protected Methods

Method Description
DownloadAddressBookEntryAsync ( Uri entryLocation, CancellationToken cancellationToken ) : Task

Downloads an address book entry from the specified URL. No signature validation is performed.

DownloadEndpointAsync ( Uri entryLocation, CancellationToken cancellationToken ) : Task

Downloads the endpoint described by the address book entry found at the given URL and verifies the signature.

OnlineAddressBook ( ) : System

Initializes a new instance of the OnlineAddressBook class.

OnlineAddressBook ( HttpClient httpClient ) : System

Initializes a new instance of the OnlineAddressBook class.

Method Details

DownloadAddressBookEntryAsync() protected method

Downloads an address book entry from the specified URL. No signature validation is performed.
Thrown when deserialization of the downloaded address book entry fails.
protected DownloadAddressBookEntryAsync ( Uri entryLocation, CancellationToken cancellationToken ) : Task
entryLocation System.Uri The location to download from.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

DownloadEndpointAsync() protected method

Downloads the endpoint described by the address book entry found at the given URL and verifies the signature.
Thrown when deserialization or signature verification of the address book entry fails.
protected DownloadEndpointAsync ( Uri entryLocation, CancellationToken cancellationToken ) : Task
entryLocation System.Uri The entry location.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

OnlineAddressBook() protected method

Initializes a new instance of the OnlineAddressBook class.
protected OnlineAddressBook ( ) : System
return System

OnlineAddressBook() protected method

Initializes a new instance of the OnlineAddressBook class.
protected OnlineAddressBook ( HttpClient httpClient ) : System
httpClient System.Net.Http.HttpClient The HTTP client.
return System