Skip to content

Class ResultHookDispatchOptions<TResult>

Namespace: DotBoxD.Plugins.Runtime
Assembly: DotBoxD.Plugins.dll

Per-dispatch options for result-returning hooks. Local handlers keep the existing in-process semantics; the timeout applies only to remote result handlers because they cross an IPC boundary that can stall.

public sealed class ResultHookDispatchOptions<TResult> where TResult : struct, IHookResult

TResult

objectResultHookDispatchOptions<TResult>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

public static ResultHookDispatchOptions<TResult> Default { get; }

ResultHookDispatchOptions<TResult>

public TimeSpan RemoteHandlerTimeout { get; init; }

TimeSpan

public TResult? RemoteTimeoutResult { get; init; }

TResult?

public static ResultHookDispatchOptions<TResult> FailClosedAfter(TimeSpan timeout, TResult result)

timeout TimeSpan

result TResult

ResultHookDispatchOptions<TResult>