Share via


EndorsementsRetriever.GetDocumentAsync(String, CancellationToken) Method

Definition

Obtains a document from an address.

public System.Threading.Tasks.Task<string> GetDocumentAsync (string address, System.Threading.CancellationToken cancellationToken);
abstract member GetDocumentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetDocumentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetDocumentAsync (address As String, cancellationToken As CancellationToken) As Task(Of String)

Parameters

address
String

location of document.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Implements

Remarks

If the activities are successfully sent, the task result contains the document as a string.

Applies to