Skip to main content
Corvus Connection

StreamingTrigger

Attribute
TheOmenDen.StreamPulse.Scripting.Attributes.StreamingTriggerAttributeMarks a trigger handler that returns IAsyncEnumerable<ScriptProgress> (or IAsyncEnumerable<ScriptOutcome>) and bounds how long it may stream. The host already detects a streaming handler from its return type; this attribute is how you cap a long-running generator so a runaway stream can't pin a dispatch worker.

Members

2
  • MaxItems
    property
    int MaxItems
    Maximum number of items the handler may yield before it is stopped. 0 defers to the host's configured default.
  • MaxDurationMilliseconds
    property
    int MaxDurationMilliseconds
    Maximum wall-clock duration the handler may stream for, in milliseconds. 0 defers to the host's configured default (which also bounds it by the per-invocation timeout).