Class CustomAction
Example action class that reacts to CustomAction signals
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. |