DurableOrchestrationClientBase.StartNewAsync Method
Definition
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.
Overloads
| StartNewAsync(String, Object) |
Starts a new execution of the specified orchestrator function. |
| StartNewAsync(String, String, Object) |
Starts a new instance of the specified orchestrator function. |
StartNewAsync(String, Object)
Starts a new execution of the specified orchestrator function.
public virtual System.Threading.Tasks.Task<string> StartNewAsync(string orchestratorFunctionName, object input);
abstract member StartNewAsync : string * obj -> System.Threading.Tasks.Task<string>
override this.StartNewAsync : string * obj -> System.Threading.Tasks.Task<string>
Public Overridable Function StartNewAsync (orchestratorFunctionName As String, input As Object) As Task(Of String)
Parameters
- orchestratorFunctionName
- System.String
The name of the orchestrator function to start.
- input
- System.Object
JSON-serializeable input value for the orchestrator function.
Returns
A task that completes when the orchestration is started.
Exceptions
The specified function does not exist, is disabled, or is not an orchestrator function.
Applies to
StartNewAsync(String, String, Object)
Starts a new instance of the specified orchestrator function.
public abstract System.Threading.Tasks.Task<string> StartNewAsync(string orchestratorFunctionName, string instanceId, object input);
abstract member StartNewAsync : string * string * obj -> System.Threading.Tasks.Task<string>
Public MustOverride Function StartNewAsync (orchestratorFunctionName As String, instanceId As String, input As Object) As Task(Of String)
Parameters
- orchestratorFunctionName
- System.String
The name of the orchestrator function to start.
- instanceId
- System.String
The ID to use for the new orchestration instance.
- input
- System.Object
JSON-serializeable input value for the orchestrator function.
Returns
A task that completes when the orchestration is started.
Exceptions
The specified function does not exist, is disabled, or is not an orchestrator function.
Remarks
If an orchestration instance with the specified ID already exists, the existing instance will be silently replaced by this new instance.