Class RemoteHookStage<TEvent, TCurrent>
public sealed class RemoteHookStage<TEvent, TCurrent>
Type Parameters
TEventTCurrent
- 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
handlerFunc<TCurrent, HookContext, CancellationToken, ValueTask<TResult>>priorityint
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
handlerFunc<TCurrent, HookContext, ValueTask<TResult>>priorityint
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
handlerFunc<TCurrent, HookContext, TResult>priorityint
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
handlerFunc<TCurrent, CancellationToken, ValueTask<TResult>>priorityint
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
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
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
Returns
- RemoteHookPipeline<TEvent>
Type Parameters
TResult
Run(Action<TCurrent, HookContext>)
public RemoteHookPipeline<TEvent> Run(Action<TCurrent, HookContext> handler)
Parameters
handlerAction<TCurrent, HookContext>
Returns
- RemoteHookPipeline<TEvent>
Run(Action<TCurrent>)
public RemoteHookPipeline<TEvent> Run(Action<TCurrent> handler)
Parameters
handlerAction<TCurrent>
Returns
- RemoteHookPipeline<TEvent>
Run(Func<TCurrent, HookContext, ValueTask>)
public RemoteHookPipeline<TEvent> Run(Func<TCurrent, HookContext, ValueTask> handler)
Parameters
handlerFunc<TCurrent, HookContext, ValueTask>
Returns
- RemoteHookPipeline<TEvent>
Run(Func<TCurrent, ValueTask>)
public RemoteHookPipeline<TEvent> Run(Func<TCurrent, ValueTask> handler)
Parameters
Returns
- RemoteHookPipeline<TEvent>
RunLocal(Action<TCurrent, HookContext>)
public RemoteHookPipeline<TEvent> RunLocal(Action<TCurrent, HookContext> handler)
Parameters
handlerAction<TCurrent, HookContext>
Returns
- RemoteHookPipeline<TEvent>
RunLocal(Action<TCurrent>)
public RemoteHookPipeline<TEvent> RunLocal(Action<TCurrent> handler)
Parameters
handlerAction<TCurrent>
Returns
- RemoteHookPipeline<TEvent>
RunLocal(Func<TCurrent, HookContext, ValueTask>)
public RemoteHookPipeline<TEvent> RunLocal(Func<TCurrent, HookContext, ValueTask> handler)
Parameters
handlerFunc<TCurrent, HookContext, ValueTask>
Returns
- RemoteHookPipeline<TEvent>
RunLocal(Func<TCurrent, ValueTask>)
public RemoteHookPipeline<TEvent> RunLocal(Func<TCurrent, ValueTask> handler)
Parameters
Returns
- RemoteHookPipeline<TEvent>
Select<TNext>(Func<TCurrent, HookContext, TNext>)
public RemoteHookStage<TEvent, TNext> Select<TNext>(Func<TCurrent, HookContext, TNext> projection)
Parameters
projectionFunc<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
projectionFunc<TCurrent, TNext>
Returns
- RemoteHookStage<TEvent, TNext>
Type Parameters
TNext
UseGeneratedChain(PluginPackage)
public RemoteHookPipeline<TEvent> UseGeneratedChain(PluginPackage package)
Parameters
packagePluginPackage
Returns
- RemoteHookPipeline<TEvent>
UseGeneratedLocalChain(PluginPackage, Action<TCurrent, HookContext>)
public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Action<TCurrent, HookContext> handler)
Parameters
packagePluginPackagehandlerAction<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
packagePluginPackagehandlerAction<TCurrent, HookContext>decoderFunc<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
packagePluginPackagehandlerAction<TCurrent, HookContext>decoderFunc<ReadOnlyMemory<byte>, TCurrent>
Returns
- RemoteHookPipeline<TEvent>
UseGeneratedLocalChain(PluginPackage, Action<TCurrent>)
public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Action<TCurrent> handler)
Parameters
packagePluginPackagehandlerAction<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
packagePluginPackagehandlerAction<TCurrent>decoderFunc<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
packagePluginPackagehandlerAction<TCurrent>decoderFunc<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
packagePluginPackagehandlerFunc<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
packagePluginPackagehandlerFunc<TCurrent, HookContext, ValueTask>decoderFunc<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
packagePluginPackagehandlerFunc<TCurrent, HookContext, ValueTask>decoderFunc<ReadOnlyMemory<byte>, TCurrent>
Returns
- RemoteHookPipeline<TEvent>
UseGeneratedLocalChain(PluginPackage, Func<TCurrent, ValueTask>)
public RemoteHookPipeline<TEvent> UseGeneratedLocalChain(PluginPackage package, Func<TCurrent, ValueTask> handler)
Parameters
packagePluginPackagehandlerFunc<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
packagePluginPackagehandlerFunc<TCurrent, ValueTask>decoderFunc<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
packagePluginPackagehandlerFunc<TCurrent, ValueTask>decoderFunc<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
packagePluginPackagehandlerFunc<TEvent, HookContext, CancellationToken, ValueTask<TResult>>priorityint
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
packagePluginPackagehandlerFunc<TEvent, HookContext, ValueTask<TResult>>priorityint
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
packagePluginPackagehandlerFunc<TEvent, HookContext, TResult>priorityint
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
packagePluginPackagehandlerFunc<TEvent, CancellationToken, ValueTask<TResult>>priorityint
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
packagePluginPackagehandlerFunc<TEvent, ValueTask<TResult>>priorityint
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
packagePluginPackagehandlerFunc<TEvent, TResult>priorityint
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
packagePluginPackagepriorityint
Returns
- RemoteHookPipeline<TEvent>
Type Parameters
TResult
Where(Func<TCurrent, HookContext, bool>)
public RemoteHookStage<TEvent, TCurrent> Where(Func<TCurrent, HookContext, bool> filter)
Parameters
filterFunc<TCurrent, HookContext, bool>
Returns
- RemoteHookStage<TEvent, TCurrent>
Where(Func<TCurrent, bool>)
public RemoteHookStage<TEvent, TCurrent> Where(Func<TCurrent, bool> filter)
Parameters
Returns
- RemoteHookStage<TEvent, TCurrent>