DurableWorkflowOptionsExtensions.AddWorkflow 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
| Name | Description |
|---|---|
| AddWorkflow(DurableWorkflowOptions, Workflow, Boolean) |
Adds a workflow and optionally exposes a status HTTP endpoint for querying pending HITL requests. |
| AddWorkflow(DurableWorkflowOptions, Workflow, Boolean, Boolean) |
Adds a workflow and configures whether to expose a status HTTP endpoint and/or an MCP tool trigger. |
AddWorkflow(DurableWorkflowOptions, Workflow, Boolean)
Adds a workflow and optionally exposes a status HTTP endpoint for querying pending HITL requests.
public static void AddWorkflow(this Microsoft.Agents.AI.DurableTask.Workflows.DurableWorkflowOptions options, Microsoft.Agents.AI.Workflows.Workflow workflow, bool exposeStatusEndpoint);
static member AddWorkflow : Microsoft.Agents.AI.DurableTask.Workflows.DurableWorkflowOptions * Microsoft.Agents.AI.Workflows.Workflow * bool -> unit
<Extension()>
Public Sub AddWorkflow (options As DurableWorkflowOptions, workflow As Workflow, exposeStatusEndpoint As Boolean)
Parameters
- options
- DurableWorkflowOptions
The workflow options to add the workflow to.
- workflow
- Workflow
The workflow instance to add.
- exposeStatusEndpoint
- Boolean
If true, a GET endpoint is generated at workflows/{name}/status/{runId}.
Applies to
AddWorkflow(DurableWorkflowOptions, Workflow, Boolean, Boolean)
Adds a workflow and configures whether to expose a status HTTP endpoint and/or an MCP tool trigger.
public static void AddWorkflow(this Microsoft.Agents.AI.DurableTask.Workflows.DurableWorkflowOptions options, Microsoft.Agents.AI.Workflows.Workflow workflow, bool exposeStatusEndpoint, bool exposeMcpToolTrigger);
static member AddWorkflow : Microsoft.Agents.AI.DurableTask.Workflows.DurableWorkflowOptions * Microsoft.Agents.AI.Workflows.Workflow * bool * bool -> unit
<Extension()>
Public Sub AddWorkflow (options As DurableWorkflowOptions, workflow As Workflow, exposeStatusEndpoint As Boolean, exposeMcpToolTrigger As Boolean)
Parameters
- options
- DurableWorkflowOptions
The workflow options to add the workflow to.
- workflow
- Workflow
The workflow instance to add.
- exposeStatusEndpoint
- Boolean
If true, a GET endpoint is generated at workflows/{name}/status/{runId}.
- exposeMcpToolTrigger
- Boolean
If true, an MCP tool trigger is generated for the workflow.