C# Класс 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.
Наследование: AddressBook
Показать файл Открыть проект

Защищенные методы

Метод Описание
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.

Описание методов

DownloadAddressBookEntryAsync() защищенный Метод

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.
Результат Task

DownloadEndpointAsync() защищенный Метод

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.
Результат Task

OnlineAddressBook() защищенный Метод

Initializes a new instance of the OnlineAddressBook class.
protected OnlineAddressBook ( ) : System
Результат System

OnlineAddressBook() защищенный Метод

Initializes a new instance of the OnlineAddressBook class.
protected OnlineAddressBook ( HttpClient httpClient ) : System
httpClient System.Net.Http.HttpClient The HTTP client.
Результат System