Table of Contents

Class RemoteHookStage<TEvent, TCurrent>

Namespace
DotBoxD.Plugins.Runtime.Hooks
Assembly
DotBoxD.Plugins.dll
public sealed class RemoteHookStage<TEvent, TCurrent>

Type Parameters

TEvent
TCurrent
Inheritance
RemoteHookStage<TEvent, TCurrent>
Inherited Members

Methods

RegisterLocal<TResult>(Func<TCurrent, HookContext, CancellationToken, ValueTask<TResult>>, int)

public RemoteHookPipeline<TEvent> RegisterLocal<TResult>(Func<TCurrent, HookContext, CancellationToken, ValueTask<TResult>> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

handler Func<TCurrent, HookContext, CancellationToken, ValueTask<TResult>>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

RegisterLocal<TResult>(Func<TCurrent, HookContext, ValueTask<TResult>>, int)

public RemoteHookPipeline<TEvent> RegisterLocal<TResult>(Func<TCurrent, HookContext, ValueTask<TResult>> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

handler Func<TCurrent, HookContext, ValueTask<TResult>>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

RegisterLocal<TResult>(Func<TCurrent, HookContext, TResult>, int)

public RemoteHookPipeline<TEvent> RegisterLocal<TResult>(Func<TCurrent, HookContext, TResult> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

handler Func<TCurrent, HookContext, TResult>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

RegisterLocal<TResult>(Func<TCurrent, CancellationToken, ValueTask<TResult>>, int)

public RemoteHookPipeline<TEvent> RegisterLocal<TResult>(Func<TCurrent, CancellationToken, ValueTask<TResult>> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

handler Func<TCurrent, CancellationToken, ValueTask<TResult>>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

RegisterLocal<TResult>(Func<TCurrent, ValueTask<TResult>>, int)

public RemoteHookPipeline<TEvent> RegisterLocal<TResult>(Func<TCurrent, ValueTask<TResult>> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

handler Func<TCurrent, ValueTask<TResult>>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

RegisterLocal<TResult>(Func<TCurrent, TResult>, int)

public RemoteHookPipeline<TEvent> RegisterLocal<TResult>(Func<TCurrent, TResult> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

handler Func<TCurrent, TResult>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

Register<TResult>(Func<TCurrent, TResult>, int)

public RemoteHookPipeline<TEvent> Register<TResult>(Func<TCurrent, TResult> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

handler Func<TCurrent, TResult>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

Run(Action<TCurrent, HookContext>)

public RemoteHookPipeline<TEvent> Run(Action<TCurrent, HookContext> handler)

Parameters

handler Action<TCurrent, HookContext>

Returns

RemoteHookPipeline<TEvent>

Run(Action<TCurrent>)

public RemoteHookPipeline<TEvent> Run(Action<TCurrent> handler)

Parameters

handler Action<TCurrent>

Returns

RemoteHookPipeline<TEvent>

Run(Func<TCurrent, HookContext, ValueTask>)

public RemoteHookPipeline<TEvent> Run(Func<TCurrent, HookContext, ValueTask> handler)

Parameters

handler Func<TCurrent, HookContext, ValueTask>

Returns

RemoteHookPipeline<TEvent>

Run(Func<TCurrent, ValueTask>)

public RemoteHookPipeline<TEvent> Run(Func<TCurrent, ValueTask> handler)

Parameters

handler Func<TCurrent, ValueTask>

Returns

RemoteHookPipeline<TEvent>

RunLocal(Action<TCurrent, HookContext>)

public RemoteHookPipeline<TEvent> RunLocal(Action<TCurrent, HookContext> handler)

Parameters

handler Action<TCurrent, HookContext>

Returns

RemoteHookPipeline<TEvent>

RunLocal(Action<TCurrent>)

public RemoteHookPipeline<TEvent> RunLocal(Action<TCurrent> handler)

Parameters

handler Action<TCurrent>

Returns

RemoteHookPipeline<TEvent>

RunLocal(Func<TCurrent, HookContext, ValueTask>)

public RemoteHookPipeline<TEvent> RunLocal(Func<TCurrent, HookContext, ValueTask> handler)

Parameters

handler Func<TCurrent, HookContext, ValueTask>

Returns

RemoteHookPipeline<TEvent>

RunLocal(Func<TCurrent, ValueTask>)

public RemoteHookPipeline<TEvent> RunLocal(Func<TCurrent, ValueTask> handler)

Parameters

handler Func<TCurrent, ValueTask>

Returns

RemoteHookPipeline<TEvent>

Select<TNext>(Func<TCurrent, HookContext, TNext>)

public RemoteHookStage<TEvent, TNext> Select<TNext>(Func<TCurrent, HookContext, TNext> projection)

Parameters

projection Func<TCurrent, HookContext, TNext>

Returns

RemoteHookStage<TEvent, TNext>

Type Parameters

TNext

Select<TNext>(Func<TCurrent, TNext>)

public RemoteHookStage<TEvent, TNext> Select<TNext>(Func<TCurrent, TNext> projection)

Parameters

projection Func<TCurrent, TNext>

Returns

RemoteHookStage<TEvent, TNext>

Type Parameters

TNext

UseGeneratedChain(PluginPackage)

public RemoteHookPipeline<TEvent> UseGeneratedChain(PluginPackage package)

Parameters

package PluginPackage

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Action<TCurrent, HookContext>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Action<TCurrent, HookContext> handler)

Parameters

package PluginPackage
handler Action<TCurrent, HookContext>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Action<TCurrent, HookContext>, Func<KernelRpcValue, TCurrent>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Action<TCurrent, HookContext> handler, Func<KernelRpcValue, TCurrent> decoder)

Parameters

package PluginPackage
handler Action<TCurrent, HookContext>
decoder Func<KernelRpcValue, TCurrent>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Action<TCurrent, HookContext>, Func<ReadOnlyMemory<byte>, TCurrent>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Action<TCurrent, HookContext> handler, Func<ReadOnlyMemory<byte>, TCurrent> decoder)

Parameters

package PluginPackage
handler Action<TCurrent, HookContext>
decoder Func<ReadOnlyMemory<byte>, TCurrent>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Action<TCurrent>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Action<TCurrent> handler)

Parameters

package PluginPackage
handler Action<TCurrent>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Action<TCurrent>, Func<KernelRpcValue, TCurrent>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Action<TCurrent> handler, Func<KernelRpcValue, TCurrent> decoder)

Parameters

package PluginPackage
handler Action<TCurrent>
decoder Func<KernelRpcValue, TCurrent>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Action<TCurrent>, Func<ReadOnlyMemory<byte>, TCurrent>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Action<TCurrent> handler, Func<ReadOnlyMemory<byte>, TCurrent> decoder)

Parameters

package PluginPackage
handler Action<TCurrent>
decoder Func<ReadOnlyMemory<byte>, TCurrent>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Func<TCurrent, HookContext, ValueTask>)

Installs a lowered RunLocal chain whose projected type is TCurrent (the type produced by the preceding Select). The lowered filter+projection installs server-side and the native delegate is registered to receive the projected value pushed back per matching event.

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Func<TCurrent, HookContext, ValueTask> handler)

Parameters

package PluginPackage
handler Func<TCurrent, HookContext, ValueTask>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Func<TCurrent, HookContext, ValueTask>, Func<KernelRpcValue, TCurrent>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Func<TCurrent, HookContext, ValueTask> handler, Func<KernelRpcValue, TCurrent> decoder)

Parameters

package PluginPackage
handler Func<TCurrent, HookContext, ValueTask>
decoder Func<KernelRpcValue, TCurrent>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Func<TCurrent, HookContext, ValueTask>, Func<ReadOnlyMemory<byte>, TCurrent>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Func<TCurrent, HookContext, ValueTask> handler, Func<ReadOnlyMemory<byte>, TCurrent> decoder)

Parameters

package PluginPackage
handler Func<TCurrent, HookContext, ValueTask>
decoder Func<ReadOnlyMemory<byte>, TCurrent>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Func<TCurrent, ValueTask>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Func<TCurrent, ValueTask> handler)

Parameters

package PluginPackage
handler Func<TCurrent, ValueTask>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Func<TCurrent, ValueTask>, Func<KernelRpcValue, TCurrent>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Func<TCurrent, ValueTask> handler, Func<KernelRpcValue, TCurrent> decoder)

Parameters

package PluginPackage
handler Func<TCurrent, ValueTask>
decoder Func<KernelRpcValue, TCurrent>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalChain(PluginPackage, Func<TCurrent, ValueTask>, Func<ReadOnlyMemory<byte>, TCurrent>)

public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Func<TCurrent, ValueTask> handler, Func<ReadOnlyMemory<byte>, TCurrent> decoder)

Parameters

package PluginPackage
handler Func<TCurrent, ValueTask>
decoder Func<ReadOnlyMemory<byte>, TCurrent>

Returns

RemoteHookPipeline<TEvent>

UseGeneratedLocalResultChain<TResult>(PluginPackage, Func<TEvent, HookContext, CancellationToken, ValueTask<TResult>>, int)

public RemoteHookPipeline<TEvent> UseGeneratedLocalResultChain<TResult>(PluginPackage package, Func<TEvent, HookContext, CancellationToken, ValueTask<TResult>> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

package PluginPackage
handler Func<TEvent, HookContext, CancellationToken, ValueTask<TResult>>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

UseGeneratedLocalResultChain<TResult>(PluginPackage, Func<TEvent, HookContext, ValueTask<TResult>>, int)

public RemoteHookPipeline<TEvent> UseGeneratedLocalResultChain<TResult>(PluginPackage package, Func<TEvent, HookContext, ValueTask<TResult>> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

package PluginPackage
handler Func<TEvent, HookContext, ValueTask<TResult>>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

UseGeneratedLocalResultChain<TResult>(PluginPackage, Func<TEvent, HookContext, TResult>, int)

public RemoteHookPipeline<TEvent> UseGeneratedLocalResultChain<TResult>(PluginPackage package, Func<TEvent, HookContext, TResult> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

package PluginPackage
handler Func<TEvent, HookContext, TResult>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

UseGeneratedLocalResultChain<TResult>(PluginPackage, Func<TEvent, CancellationToken, ValueTask<TResult>>, int)

public RemoteHookPipeline<TEvent> UseGeneratedLocalResultChain<TResult>(PluginPackage package, Func<TEvent, CancellationToken, ValueTask<TResult>> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

package PluginPackage
handler Func<TEvent, CancellationToken, ValueTask<TResult>>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

UseGeneratedLocalResultChain<TResult>(PluginPackage, Func<TEvent, ValueTask<TResult>>, int)

public RemoteHookPipeline<TEvent> UseGeneratedLocalResultChain<TResult>(PluginPackage package, Func<TEvent, ValueTask<TResult>> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

package PluginPackage
handler Func<TEvent, ValueTask<TResult>>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

UseGeneratedLocalResultChain<TResult>(PluginPackage, Func<TEvent, TResult>, int)

public RemoteHookPipeline<TEvent> UseGeneratedLocalResultChain<TResult>(PluginPackage package, Func<TEvent, TResult> handler, int priority = 0) where TResult : struct, IHookResult

Parameters

package PluginPackage
handler Func<TEvent, TResult>
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

UseGeneratedResultChain<TResult>(PluginPackage, int)

public RemoteHookPipeline<TEvent> UseGeneratedResultChain<TResult>(PluginPackage package, int priority = 0) where TResult : struct, IHookResult

Parameters

package PluginPackage
priority int

Returns

RemoteHookPipeline<TEvent>

Type Parameters

TResult

Where(Func<TCurrent, HookContext, bool>)

public RemoteHookStage<TEvent, TCurrent> Where(Func<TCurrent, HookContext, bool> filter)

Parameters

filter Func<TCurrent, HookContext, bool>

Returns

RemoteHookStage<TEvent, TCurrent>

Where(Func<TCurrent, bool>)

public RemoteHookStage<TEvent, TCurrent> Where(Func<TCurrent, bool> filter)

Parameters

filter Func<TCurrent, bool>

Returns

RemoteHookStage<TEvent, TCurrent>