Class ResultHookDispatchOptions<TResult>
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
Type Parameters
TResult
- Inheritance
-
ResultHookDispatchOptions<TResult>
- Inherited Members
Properties
Default
public static ResultHookDispatchOptions<TResult> Default { get; }
Property Value
- ResultHookDispatchOptions<TResult>
RemoteHandlerTimeout
public TimeSpan RemoteHandlerTimeout { get; init; }
Property Value
RemoteTimeoutResult
public TResult? RemoteTimeoutResult { get; init; }
Property Value
- TResult?
Methods
FailClosedAfter(TimeSpan, TResult)
public static ResultHookDispatchOptions<TResult> FailClosedAfter(TimeSpan timeout, TResult result)
Parameters
timeoutTimeSpanresultTResult
Returns
- ResultHookDispatchOptions<TResult>