public OperationTimeoutException(string message, double timeout, IDispatcherCommand command) : this(message, timeout) { Command = command ?? throw new ArgumentNullException(nameof(command)); }
public CommandUnrecognizedException(string message, IDispatcherCommand cmd) : base(message) { Command = cmd; }
/// <summary> /// Creates new instance. /// </summary> /// <param name="cmd">Operation command.</param> /// <param name="isSecure">Indicates if security checks should be made upon class creation.</param> public IOperationBase(IDispatcherCommand cmd, bool isSecure = false) : base(isSecure) { Command = cmd ?? throw new ArgumentNullException(nameof(cmd)); Dispatcher = cmd.Dispatcher; }
/// <summary> /// Creates new instance. /// </summary> /// <param name="cmd">Operation command.</param> public IOperationBase(IDispatcherCommand cmd) : base() { Command = cmd ?? throw new ArgumentNullException(nameof(cmd)); Dispatcher = cmd.Dispatcher; }
/// <summary> /// When overriden tries to parse specified command. /// </summary> /// <param name="cmd">Command to parse.</param> /// <returns>True if parsed sucessfully; otherwise, false.</returns> public abstract bool TryParse(IDispatcherCommand cmd);
public CommandUnrecognizedException(string message, IDispatcherCommand cmd) : base(message) { this.Command = cmd; }
/// <summary> /// Creates new instance. /// </summary> /// <param name="exception"></param> /// <param name="command"></param> public DispatcherExceptionEventArgs(DispatcherException exception, IDispatcherCommand command = default) { Exception = exception ?? throw new ArgumentNullException(nameof(exception)); Command = command; }
public NotifyDispatcherCommandCanExecuteChanged(IDispatcherCommand command) { Command = command ?? throw new ArgumentNullException(nameof(command)); }