private static void command_onCommandRejected(object sender, CommandRejectedEventArgs eventArgs) { Console.WriteLine(); Console.WriteLine($"!!! Rejected command: {eventArgs.Command.Name} on {eventArgs.DateRejected} reason: {eventArgs.Reason}"); }
protected virtual void OnCommandRejected(object sender, CommandRejectedEventArgs eventArgs) { CommandRejected?.Invoke(sender, eventArgs); }