logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CustomAction

    Example action class that reacts to CustomAction signals

    Inheritance
    object
    CustomAction
    Namespace: Serenity.Examples
    Assembly: Assembly-CSharp.dll
    Syntax
    public sealed class CustomAction : EventDispatcherAction<CustomActionSignal>
    Remarks

    This class demonstrates how to react to a custom action signal. Uses ServiceLocatorBridge to obtain ILogService since EventDispatcher actions are instantiated via reflection and cannot receive constructor injection.

    Constructors

    CustomAction()

    Declaration
    public CustomAction()

    Methods

    Execute(CustomActionSignal)

    Reacts to the CustomAction signal by logging a message to the console.

    Declaration
    protected override void Execute(CustomActionSignal signal)
    Parameters
    Type Name Description
    CustomActionSignal signal

    The CustomAction signal.

    In this article
    © 2026 Serenity. All Rights Reserved