Udostępnij za pośrednictwem


OperationExtensions.WaitForCompletionAsync Method

Definition

Overloads

WaitForCompletionAsync(Task<RecognizeBusinessCardsOperation>, CancellationToken)

Periodically calls the server until the long-running operation completes.

WaitForCompletionAsync(Task<RecognizeContentOperation>, CancellationToken)

Periodically calls the server until the long-running operation completes.

WaitForCompletionAsync(Task<RecognizeCustomFormsOperation>, CancellationToken)

Periodically calls the server until the long-running operation completes.

WaitForCompletionAsync(Task<RecognizeInvoicesOperation>, CancellationToken)

Periodically calls the server until the long-running operation completes.

WaitForCompletionAsync(Task<RecognizeReceiptsOperation>, CancellationToken)

Periodically calls the server until the long-running operation completes.

WaitForCompletionAsync(Task<CopyModelOperation>, CancellationToken)

Periodically calls the server until the long-running operation completes.

WaitForCompletionAsync(Task<CreateComposedModelOperation>, CancellationToken)

Periodically calls the server until the long-running operation completes.

WaitForCompletionAsync(Task<TrainingOperation>, CancellationToken)

Periodically calls the server until the long-running operation completes.

WaitForCompletionAsync(Task<RecognizeBusinessCardsOperation>, CancellationToken)

Source:
OperationExtensions.cs

Periodically calls the server until the long-running operation completes.

public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync (this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeBusinessCardsOperation> operation, System.Threading.CancellationToken cancellationToken = default);
static member WaitForCompletionAsync : System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeBusinessCardsOperation> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>>
<Extension()>
Public Function WaitForCompletionAsync (operation As Task(Of RecognizeBusinessCardsOperation), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RecognizedFormCollection))

Parameters

operation
Task<RecognizeBusinessCardsOperation>

The instance that this method was invoked on.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> representing the result of the operation. It can be cast to a IReadOnlyList<T> containing the recognized business cards.

Applies to

WaitForCompletionAsync(Task<RecognizeContentOperation>, CancellationToken)

Source:
OperationExtensions.cs

Periodically calls the server until the long-running operation completes.

public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.FormPageCollection>> WaitForCompletionAsync (this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeContentOperation> operation, System.Threading.CancellationToken cancellationToken = default);
static member WaitForCompletionAsync : System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeContentOperation> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.FormPageCollection>>
<Extension()>
Public Function WaitForCompletionAsync (operation As Task(Of RecognizeContentOperation), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FormPageCollection))

Parameters

operation
Task<RecognizeContentOperation>

The instance that this method was invoked on.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> representing the result of the operation. It can be cast to a IReadOnlyList<T> containing the recognized pages.

Applies to

WaitForCompletionAsync(Task<RecognizeCustomFormsOperation>, CancellationToken)

Source:
OperationExtensions.cs

Periodically calls the server until the long-running operation completes.

public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync (this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation> operation, System.Threading.CancellationToken cancellationToken = default);
static member WaitForCompletionAsync : System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>>
<Extension()>
Public Function WaitForCompletionAsync (operation As Task(Of RecognizeCustomFormsOperation), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RecognizedFormCollection))

Parameters

operation
Task<RecognizeCustomFormsOperation>

The instance that this method was invoked on.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> representing the result of the operation. It can be cast to a IReadOnlyList<T> containing the recognized forms.

Applies to

WaitForCompletionAsync(Task<RecognizeInvoicesOperation>, CancellationToken)

Source:
OperationExtensions.cs

Periodically calls the server until the long-running operation completes.

public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync (this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeInvoicesOperation> operation, System.Threading.CancellationToken cancellationToken = default);
static member WaitForCompletionAsync : System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeInvoicesOperation> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>>
<Extension()>
Public Function WaitForCompletionAsync (operation As Task(Of RecognizeInvoicesOperation), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RecognizedFormCollection))

Parameters

operation
Task<RecognizeInvoicesOperation>

The instance that this method was invoked on.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> representing the result of the operation. It can be cast to a IReadOnlyList<T> containing the recognized business cards.

Applies to

WaitForCompletionAsync(Task<RecognizeReceiptsOperation>, CancellationToken)

Source:
OperationExtensions.cs

Periodically calls the server until the long-running operation completes.

public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync (this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeReceiptsOperation> operation, System.Threading.CancellationToken cancellationToken = default);
static member WaitForCompletionAsync : System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeReceiptsOperation> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>>
<Extension()>
Public Function WaitForCompletionAsync (operation As Task(Of RecognizeReceiptsOperation), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RecognizedFormCollection))

Parameters

operation
Task<RecognizeReceiptsOperation>

The instance that this method was invoked on.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> representing the result of the operation. It can be cast to a IReadOnlyList<T> containing the recognized receipts.

Applies to

WaitForCompletionAsync(Task<CopyModelOperation>, CancellationToken)

Source:
OperationExtensions.cs

Periodically calls the server until the long-running operation completes.

public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModelInfo>> WaitForCompletionAsync (this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.CopyModelOperation> operation, System.Threading.CancellationToken cancellationToken = default);
static member WaitForCompletionAsync : System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.CopyModelOperation> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModelInfo>>
<Extension()>
Public Function WaitForCompletionAsync (operation As Task(Of CopyModelOperation), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CustomFormModelInfo))

Parameters

operation
Task<CopyModelOperation>

The instance that this method was invoked on.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> representing the result of the operation. It can be cast to a CustomFormModelInfo containing meta-data about the trained model.

Applies to

WaitForCompletionAsync(Task<CreateComposedModelOperation>, CancellationToken)

Source:
OperationExtensions.cs

Periodically calls the server until the long-running operation completes.

public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>> WaitForCompletionAsync (this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.CreateComposedModelOperation> operation, System.Threading.CancellationToken cancellationToken = default);
static member WaitForCompletionAsync : System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.CreateComposedModelOperation> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>>
<Extension()>
Public Function WaitForCompletionAsync (operation As Task(Of CreateComposedModelOperation), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CustomFormModel))

Parameters

operation
Task<CreateComposedModelOperation>

The instance that this method was invoked on.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> representing the result of the operation. It can be cast to a CustomFormModel containing meta-data about the trained model.

Applies to

WaitForCompletionAsync(Task<TrainingOperation>, CancellationToken)

Source:
OperationExtensions.cs

Periodically calls the server until the long-running operation completes.

public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>> WaitForCompletionAsync (this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.TrainingOperation> operation, System.Threading.CancellationToken cancellationToken = default);
static member WaitForCompletionAsync : System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.TrainingOperation> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>>
<Extension()>
Public Function WaitForCompletionAsync (operation As Task(Of TrainingOperation), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CustomFormModel))

Parameters

operation
Task<TrainingOperation>

The instance that this method was invoked on.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> representing the result of the operation. It can be cast to a CustomFormModel containing meta-data about the trained model.

Applies to