| 1234567891011121314151617181920212223242526272829 |
- using Quadarax.Foundation.Core.QConsole.Attributes;
- using Quadarax.Foundation.Core.QConsole.Command.Base;
- using Quadarax.Foundation.Core.Value;
- namespace Quadarax.Foundation.Core.QConsole.Command.Defaults
- {
- [CommandDefinition]
- public class CmdExit : AbstractCommand
- {
- #region *** Properties ***
- public override string Name => Constants.Commands.Exit.Name;
- public override string Description => Constants.Commands.Exit.Description;
- #endregion
- #region *** Constructors ***
- public CmdExit(Engine engine) : base(engine)
- {
- }
- #endregion
-
- #region *** Protected overrides ***
- protected override Result OnExecute()
- {
- Engine.Stop();
- return new Result();
- }
- #endregion
- }
- }
|