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
Afficher le fichier Open project: AArnott/IronPigeon

Méthodes protégées

Méthode 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 méthode

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.
Résultat Task

DownloadEndpointAsync() protected méthode

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.
Résultat Task

OnlineAddressBook() protected méthode

Initializes a new instance of the OnlineAddressBook class.
protected OnlineAddressBook ( ) : System
Résultat System

OnlineAddressBook() protected méthode

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