Edit

Typed workflow trigger interfaces

Namespace: Microsoft.Azure.Workflows.Sdk

Provides type-safe interfaces for workflow triggers with strongly typed output contracts for body and structured output access. These interfaces extend IWorkflowTrigger so downstream actions can reference trigger payloads and structured outputs through expression-friendly properties.

Usage

// IOutputWorkflowTrigger<T> - HTTP trigger with typed output
IOutputWorkflowTrigger<HttpRequestTriggerOutput> trigger = WorkflowTriggers.BuiltIn.CreateHttpTrigger();
var compose = WorkflowActions.BuiltIn.Compose(
    inputs: () => $"Received: {trigger.TriggerOutput.Body}").WithName("LogInput");
trigger.Then(compose);

IOutputWorkflowTrigger<T>

Represents a typed workflow trigger whose structured output is available through a strongly typed property.

Properties

Name Description Type Required
TriggerOutput Gets the strongly typed output produced by the trigger. T No

Methods

This type implements Then() methods from IChainableNode. See that page for full documentation of all overloads.

IBodyWorkflowTrigger<T>

Represents a typed workflow trigger whose body payload is available through a strongly typed property.

Properties

Name Description Type Required
TriggerBody Gets the strongly typed body payload produced by the trigger. T No

Methods

This type implements Then() methods from IChainableNode. See that page for full documentation of all overloads.