AddTaskCollectionResultHandler AddTaskCollectionResultHandler 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
AddTaskCollectionResultHandlerAddTaskCollectionResultHandlerAddTaskCollectionResultHandler

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>) AddTaskCollectionResultHandler(Func<AddTaskResult,CancellationToken,AddTaskResultStatus>) AddTaskCollectionResultHandler(Func<AddTaskResult,CancellationToken,AddTaskResultStatus>)

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

Properties

ResultHandler ResultHandler 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) DefaultAddTaskCollectionResultHandler(AddTaskResult, CancellationToken) 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).

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to