-
Notifications
You must be signed in to change notification settings - Fork 263
/
StartOrchestrationArgs.cs
52 lines (47 loc) · 2.02 KB
/
StartOrchestrationArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
namespace Microsoft.Azure.WebJobs
{
/// <summary>
/// Parameters for starting a new instance of an orchestration.
/// </summary>
/// <remarks>
/// This class is primarily intended for use with <c>IAsyncCollector<T></c>.
/// </remarks>
public class StartOrchestrationArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="StartOrchestrationArgs"/> class.
/// </summary>
/// <param name="functionName">The name of the orchestrator function to start.</param>
/// <param name="input">The JSON-serializeable input for the orchestrator function.</param>
public StartOrchestrationArgs(string functionName, object input)
{
this.FunctionName = functionName;
this.Input = input;
}
/// <summary>
/// Initializes a new instance of the <see cref="StartOrchestrationArgs"/> class.
/// </summary>
public StartOrchestrationArgs()
{ }
/// <summary>
/// Gets or sets the name of the orchestrator function to start.
/// </summary>
/// <value>The name of the orchestrator function to start.</value>
public string FunctionName { get; set; }
/// <summary>
/// Gets or sets the instance ID to assign to the started orchestration.
/// </summary>
/// <remarks>
/// If this property value is null (the default), then a randomly generated instance ID will be assigned automatically.
/// </remarks>
/// <value>The instance ID to assign.</value>
public string InstanceId { get; set; }
/// <summary>
/// Gets or sets the JSON-serializeable input data for the orchestrator function.
/// </summary>
/// <value>JSON-serializeable input value for the orchestrator function.</value>
public object Input { get; set; }
}
}