Class EndGameSessionAction
Action that reacts to EndGameSession signals by transitioning to Menu mode.
Namespace: Serenity.GameMode.Application.Events
Assembly: Serenity.GameMode.Application.dll
Syntax
public sealed class EndGameSessionAction : EventDispatcherAction<EndGameSessionSignal>
Remarks
This action transitions the application from Game mode to Menu mode, effectively ending the current game session and returning to the main menu. It uses the ServiceLocator to find the IGameModeService if not provided in the signal.
Constructors
EndGameSessionAction()
Declaration
public EndGameSessionAction()
Properties
LogCategory
Preserves the "EndGameSession" log category used before this class had an "Action" suffix, which no longer matches the default (the runtime type name).
Declaration
protected override string LogCategory { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Execute(EndGameSessionSignal)
Reacts to the EndGameSession signal by transitioning to Menu mode.
Declaration
protected override void Execute(EndGameSessionSignal signal)
Parameters
| Type | Name | Description |
|---|---|---|
| EndGameSessionSignal | signal | The EndGameSession signal. |