Class SubscriptionRegistry
Namespace: DotBoxD.Plugins.Runtime
Assembly: DotBoxD.Plugins.dll
public sealed class SubscriptionRegistryInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”On<TEvent>()
Section titled “ On<TEvent>()”public SubscriptionPipeline<TEvent, HookContext> On<TEvent>()Returns
Section titled “Returns”SubscriptionPipeline<TEvent, HookContext>
Type Parameters
Section titled “Type Parameters”TEvent
On<TEvent>(IPluginEventAdapter<TEvent>)
Section titled “ On<TEvent>(IPluginEventAdapter<TEvent>)”public SubscriptionPipeline<TEvent, HookContext> On<TEvent>(IPluginEventAdapter<TEvent> adapter)Parameters
Section titled “Parameters”adapter IPluginEventAdapter<TEvent>
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, HookContext>
Type Parameters
Section titled “Type Parameters”TEvent
On<TEvent, TContext>(Func<HookContext, TContext>)
Section titled “ On<TEvent, TContext>(Func<HookContext, TContext>)”public SubscriptionPipeline<TEvent, TContext> On<TEvent, TContext>(Func<HookContext, TContext> createContext)Parameters
Section titled “Parameters”createContext Func<HookContext, TContext>
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
Type Parameters
Section titled “Type Parameters”TEvent
TContext
On<TEvent, TContext>(IPluginEventAdapter<TEvent>, Func<HookContext, TContext>)
Section titled “ On<TEvent, TContext>(IPluginEventAdapter<TEvent>, Func<HookContext, TContext>)”public SubscriptionPipeline<TEvent, TContext> On<TEvent, TContext>(IPluginEventAdapter<TEvent> adapter, Func<HookContext, TContext> createContext)Parameters
Section titled “Parameters”adapter IPluginEventAdapter<TEvent>
createContext Func<HookContext, TContext>
Returns
Section titled “Returns”SubscriptionPipeline<TEvent, TContext>
Type Parameters
Section titled “Type Parameters”TEvent
TContext
Publish<TEvent>(TEvent, CancellationToken)
Section titled “ Publish<TEvent>(TEvent, CancellationToken)”public void Publish<TEvent>(TEvent e, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”e TEvent
cancellationToken CancellationToken
Type Parameters
Section titled “Type Parameters”TEvent
PublishAsync<TEvent>(TEvent, CancellationToken)
Section titled “ PublishAsync<TEvent>(TEvent, CancellationToken)”public ValueTask PublishAsync<TEvent>(TEvent e, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”e TEvent
cancellationToken CancellationToken
Returns
Section titled “Returns”Type Parameters
Section titled “Type Parameters”TEvent