Class SubscriptionStage<TEvent, TCurrent, TContext>
Namespace: DotBoxD.Plugins.Runtime.Subscriptions
Assembly: DotBoxD.Plugins.dll
A re-typed stage in a subscription chain after a SubscriptionPipeline<TEvent>.Select.
[PipelineSurface(PipelineTransport.Local)]public class SubscriptionStage<TEvent, TCurrent, TContext>Type Parameters
Section titled “Type Parameters”TEvent
TCurrent
TContext
Inheritance
Section titled “Inheritance”object ← SubscriptionStage<TEvent, TCurrent, TContext>
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”Run(Func<TCurrent, TContext, ValueTask>, IRKernel?)
Section titled “ Run(Func<TCurrent, TContext, ValueTask>, IRKernel?)”public SubscriptionPipeline<TEvent, TContext> Run(Func<TCurrent, TContext, ValueTask> handler, IRKernel? irHandler = null)Parameters
Section titled “Parameters”handler Func<TCurrent, TContext, ValueTask>
irHandler IRKernel?
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
Run(Action<TCurrent, TContext>, IRKernel?)
Section titled “ Run(Action<TCurrent, TContext>, IRKernel?)”public SubscriptionPipeline<TEvent, TContext> Run(Action<TCurrent, TContext> handler, IRKernel? irHandler = null)Parameters
Section titled “Parameters”handler Action<TCurrent, TContext>
irHandler IRKernel?
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
Run(Func<TCurrent, ValueTask>, IRKernel?)
Section titled “ Run(Func<TCurrent, ValueTask>, IRKernel?)”public SubscriptionPipeline<TEvent, TContext> Run(Func<TCurrent, ValueTask> handler, IRKernel? irHandler = null)Parameters
Section titled “Parameters”handler Func<TCurrent, ValueTask>
irHandler IRKernel?
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
Run(Action<TCurrent>, IRKernel?)
Section titled “ Run(Action<TCurrent>, IRKernel?)”public SubscriptionPipeline<TEvent, TContext> Run(Action<TCurrent> handler, IRKernel? irHandler = null)Parameters
Section titled “Parameters”handler Action<TCurrent>
irHandler IRKernel?
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
RunLocal(Func<TCurrent, TContext, ValueTask>)
Section titled “ RunLocal(Func<TCurrent, TContext, ValueTask>)”public SubscriptionPipeline<TEvent, TContext> RunLocal(Func<TCurrent, TContext, ValueTask> handler)Parameters
Section titled “Parameters”handler Func<TCurrent, TContext, ValueTask>
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
RunLocal(Action<TCurrent, TContext>)
Section titled “ RunLocal(Action<TCurrent, TContext>)”public SubscriptionPipeline<TEvent, TContext> RunLocal(Action<TCurrent, TContext> handler)Parameters
Section titled “Parameters”handler Action<TCurrent, TContext>
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
RunLocal(Func<TCurrent, ValueTask>)
Section titled “ RunLocal(Func<TCurrent, ValueTask>)”public SubscriptionPipeline<TEvent, TContext> RunLocal(Func<TCurrent, ValueTask> handler)Parameters
Section titled “Parameters”handler Func<TCurrent, ValueTask>
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
RunLocal(Action<TCurrent>)
Section titled “ RunLocal(Action<TCurrent>)”public SubscriptionPipeline<TEvent, TContext> RunLocal(Action<TCurrent> handler)Parameters
Section titled “Parameters”handler Action<TCurrent>
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
Select<TNext>(Func<TCurrent, TContext, TNext>, IRFunc<TCurrent, TContext, TNext>?)
Section titled “ Select<TNext>(Func<TCurrent, TContext, TNext>, IRFunc<TCurrent, TContext, TNext>?)”public SubscriptionStage<TEvent, TNext, TContext> Select<TNext>(Func<TCurrent, TContext, TNext> projection, IRFunc<TCurrent, TContext, TNext>? irProjection = null)Parameters
Section titled “Parameters”projection Func<TCurrent, TContext, TNext>
irProjection IRFunc<TCurrent, TContext, TNext>?
Returns
Section titled “Returns”SubscriptionStage<TEvent, TNext, TContext>
Type Parameters
Section titled “Type Parameters”TNext
Select<TNext>(Func<TCurrent, TNext>, IRFunc<TCurrent, TNext>?)
Section titled “ Select<TNext>(Func<TCurrent, TNext>, IRFunc<TCurrent, TNext>?)”public SubscriptionStage<TEvent, TNext, TContext> Select<TNext>(Func<TCurrent, TNext> projection, IRFunc<TCurrent, TNext>? irProjection = null)Parameters
Section titled “Parameters”projection Func<TCurrent, TNext>
irProjection IRFunc<TCurrent, TNext>?
Returns
Section titled “Returns”SubscriptionStage<TEvent, TNext, TContext>
Type Parameters
Section titled “Type Parameters”TNext
UseGeneratedChain(PluginPackage)
Section titled “ UseGeneratedChain(PluginPackage)”public SubscriptionPipeline<TEvent, TContext> UseGeneratedChain(PluginPackage package)Parameters
Section titled “Parameters”package PluginPackage
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
Where(Func<TCurrent, TContext, bool>, IRFunc<TCurrent, TContext, bool>?)
Section titled “ Where(Func<TCurrent, TContext, bool>, IRFunc<TCurrent, TContext, bool>?)”public SubscriptionStage<TEvent, TCurrent, TContext> Where(Func<TCurrent, TContext, bool> filter, IRFunc<TCurrent, TContext, bool>? irFilter = null)Parameters
Section titled “Parameters”filter Func<TCurrent, TContext, bool>
irFilter IRFunc<TCurrent, TContext, bool>?
Returns
Section titled “Returns”SubscriptionStage<TEvent, TCurrent, TContext>
Where(Func<TCurrent, bool>, IRFunc<TCurrent, bool>?)
Section titled “ Where(Func<TCurrent, bool>, IRFunc<TCurrent, bool>?)”public SubscriptionStage<TEvent, TCurrent, TContext> Where(Func<TCurrent, bool> filter, IRFunc<TCurrent, bool>? irFilter = null)Parameters
Section titled “Parameters”irFilter IRFunc<TCurrent, bool>?
Returns
Section titled “Returns”SubscriptionStage<TEvent, TCurrent, TContext>