AddTaskCollectionResultHandler Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
Add |
Initializes a new instance of the AddTaskCollectionResultHandler class with the specified result handler function. |
Result |
Gets or sets the function that defines whether a particular Add Task operation is considered successful or unsuccessful, and whether it may be retried. |
Default |
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). |
Product | Versions |
---|---|
Azure SDK for .NET | Latest |
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: