Table of Contents

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

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

TimeSpan

RemoteTimeoutResult

public TResult? RemoteTimeoutResult { get; init; }

Property Value

TResult?

Methods

FailClosedAfter(TimeSpan, TResult)

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

Parameters

timeout TimeSpan
result TResult

Returns

ResultHookDispatchOptions<TResult>