logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IEventDispatcherService

    Service interface for dispatching events within the application.

    Inherited Members
    IService.LogService
    Namespace: Serenity.EventDispatcher.Application.Interfaces
    Assembly: Serenity.Global.Application.dll
    Syntax
    public interface IEventDispatcherService : IService, IFoundationSettings

    Methods

    Dispatch(EventDispatcherSignal, Type)

    Dispatches an event signal to all subscribed listeners, specifying the type of the signal.

    Declaration
    void Dispatch(EventDispatcherSignal signal, Type type)
    Parameters
    Type Name Description
    EventDispatcherSignal signal
    Type type

    Dispatch<T>(T)

    Dispatches an event signal to all subscribed listeners.

    Declaration
    void Dispatch<T>(T signal) where T : EventDispatcherSignal
    Parameters
    Type Name Description
    T signal
    Type Parameters
    Name Description
    T

    Subscribe<T>(EventDispatcherSignalDelegate)

    Subscribes to a specific type of event signal.

    Declaration
    void Subscribe<T>(EventDispatcherSignalDelegate callback) where T : EventDispatcherSignal
    Parameters
    Type Name Description
    EventDispatcherSignalDelegate callback
    Type Parameters
    Name Description
    T

    Unsubscribe<T>(EventDispatcherSignalDelegate)

    Unsubscribes from a specific type of event signal.

    Declaration
    void Unsubscribe<T>(EventDispatcherSignalDelegate callback) where T : EventDispatcherSignal
    Parameters
    Type Name Description
    EventDispatcherSignalDelegate callback
    Type Parameters
    Name Description
    T
    In this article
    © 2026 Serenity. All Rights Reserved