Table of Contents

Class Trigger

Namespace
FlowOrchestrator.Core.Execution
Assembly
FlowOrchestrator.Core.dll

Immutable ITrigger implementation constructed at trigger time by HangfireFlowOrchestrator.TriggerAsync.

public sealed class Trigger : ITrigger
Inheritance
Trigger
Implements
Inherited Members

Constructors

Trigger(string, string, object?, IReadOnlyDictionary<string, string>?)

Initialises a trigger with the given key, type, payload, and optional HTTP headers.

public Trigger(string key, string type, object? data, IReadOnlyDictionary<string, string>? headers = null)

Parameters

key string
type string
data object
headers IReadOnlyDictionary<string, string>

Properties

Data

The trigger payload supplied at fire time (e.g. the parsed JSON body of a webhook request). Stored as trigger data for the run and accessible via @triggerBody() expressions.

public object? Data { get; }

Property Value

object

Headers

HTTP headers from the inbound request, or null for non-HTTP triggers. Accessible via @triggerHeaders() expressions.

public IReadOnlyDictionary<string, string>? Headers { get; }

Property Value

IReadOnlyDictionary<string, string>

Key

The manifest key of the trigger definition that was fired (e.g. "schedule", "webhook").

public string Key { get; }

Property Value

string

Type

The trigger type name (e.g. "Cron", "Manual", "Webhook").

public string Type { get; }

Property Value

string