logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class EventDispatcherAction<TSignal>

    Base class for event dispatcher actions associated with specific signal types.

    Inheritance
    object
    EventDispatcherAction<TSignal>
    Implements
    IEventDispatcherAction
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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 dispatcher is null.

    OnDisposed()

    Declaration
    protected virtual void OnDisposed()

    OnInitialized()

    Declaration
    protected virtual void OnInitialized()

    Implements

    IEventDispatcherAction
    IDisposable
    In this article
    © 2026 Serenity. All Rights Reserved