Class EventDispatcherAction<TSignal>
Base class for event dispatcher actions associated with specific signal types.
Inherited Members
Namespace: Serenity.EventDispatcher.Domain.Entities
Assembly: Serenity.Global.Application.dll
Syntax
public abstract class EventDispatcherAction<TSignal> : IEventDispatcherAction, IDisposable where TSignal : EventDispatcherSignal
Type Parameters
| Name | Description |
|---|---|
| TSignal | The type of signal this action responds to. |
Remarks
Inherit from this class to create custom event dispatcher actions for specific signal types.
Constructors
EventDispatcherAction()
Declaration
protected EventDispatcherAction()
Properties
SignalType
Gets the type of signal this action is associated with.
Declaration
public Type SignalType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Methods
Dispose()
Declaration
public void Dispose()
Execute(TSignal)
Declaration
protected abstract void Execute(TSignal signal)
Parameters
| Type | Name | Description |
|---|---|---|
| TSignal | signal |
Initialize(IEventDispatcherService)
Initializes the action with the given event dispatcher service.
Declaration
public void Initialize(IEventDispatcherService dispatcher)
Parameters
| Type | Name | Description |
|---|---|---|
| IEventDispatcherService | dispatcher | The event dispatcher service to use. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
OnDisposed()
Declaration
protected virtual void OnDisposed()
OnInitialized()
Declaration
protected virtual void OnInitialized()