Skip to main content
Corvus Connection

ScriptTrigger

Attribute
TheOmenDen.StreamPulse.Scripting.Attributes.ScriptTriggerAttributeBase class for all script trigger attributes (OnChatMessageAttribute, OnStreamOnlineAttribute, OnStreamOfflineAttribute, etc.). Exposes the parallelism and timeout knobs that every trigger supports.

Members

3
  • Mode
    property
    ScriptDispatchMode Mode
    How concurrent matching handlers should be dispatched. Defaults to Inherit — the host's DefaultMode applies (typically Concurrent).
  • MaxDegreeOfParallelism
    property
    int MaxDegreeOfParallelism
    Maximum degree of parallelism when Mode is Parallel. A value of 0 defers to the host's DefaultMaxDegreeOfParallelism (typically Environment.ProcessorCount). Ignored for Sequential and Concurrent.
  • TimeoutMilliseconds
    property
    int TimeoutMilliseconds
    Per-invocation timeout in milliseconds. A value of 0 defers to the host's DefaultTimeoutMs (typically 5000). When the timeout fires, the invocation's CancellationToken is cancelled and the handler is expected to honor it.