다음을 통해 공유


AddTaskCollectionResultHandler Class

Definition

A BatchClientBehavior which you can use to specify under what conditions an operation to add multiple tasks to a job should retry, terminate or be considered successful.

public class AddTaskCollectionResultHandler : Microsoft.Azure.Batch.BatchClientBehavior
type AddTaskCollectionResultHandler = class
    inherit BatchClientBehavior
Public Class AddTaskCollectionResultHandler
Inherits BatchClientBehavior
Inheritance
AddTaskCollectionResultHandler

Remarks

You do not need to specify this behavior explicitly; if you do not, a default behavior is used. This behavior uses the DefaultAddTaskCollectionResultHandler(AddTaskResult, CancellationToken) criteria.

Constructors

AddTaskCollectionResultHandler(Func<AddTaskResult,CancellationToken,AddTaskResultStatus>)

Initializes a new instance of the AddTaskCollectionResultHandler class with the specified result handler function.

Properties

ResultHandler

Gets or sets the function that defines whether a particular Add Task operation is considered successful or unsuccessful, and whether it may be retried.

Methods

DefaultAddTaskCollectionResultHandler(AddTaskResult, CancellationToken)

The default result handler for the AddTaskCollectionResultHandler behavior. This handler treats success and 'TaskExists' errors as successful, retries server errors (HTTP 5xx), and throws AddTaskCollectionTerminatedException on client error (HTTP 4xx).

Applies to