Search Results for

    Show / Hide Table of Contents

    Interface IEventBus

    Namespace: Glitch9
    Assembly: Glitch9.dll
    Syntax
    public interface IEventBus

    Methods

    | Edit this page View Source

    Dispatch<T>(T)

    Declaration
    void Dispatch<T>(T e) where T : IEvent
    Parameters
    Type Name Description
    T e
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Register<T>(IEventHandler<T>)

    Declaration
    IDisposable Register<T>(IEventHandler<T> handler) where T : IEvent
    Parameters
    Type Name Description
    IEventHandler<T> handler
    Returns
    Type Description
    IDisposable
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Register<T>(Action<T>)

    Declaration
    IDisposable Register<T>(Action<T> handler) where T : IEvent
    Parameters
    Type Name Description
    Action<T> handler
    Returns
    Type Description
    IDisposable
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Unregister<T>(IEventHandler<T>)

    Declaration
    void Unregister<T>(IEventHandler<T> handler) where T : IEvent
    Parameters
    Type Name Description
    IEventHandler<T> handler
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Unregister<T>(Action<T>)

    Declaration
    void Unregister<T>(Action<T> handler) where T : IEvent
    Parameters
    Type Name Description
    Action<T> handler
    Type Parameters
    Name Description
    T

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation