Exemplo n.º 1
0
            public CommandCompleterDescriptor(ICommandCompletion command, object result)
            {
                if (command == null)
                {
                    throw new ArgumentNullException(nameof(command));
                }

                this.Command = command;
                this.Result  = result;
            }
Exemplo n.º 2
0
 void ICommandPatternObserver <TSpec> .OnCommandCompletion(ICommandCompletion <TSpec> completion)
 => Completed?.Invoke(completion);
Exemplo n.º 3
0
 void ICommandPatternObserver.OnCommandCompletion(ICommandCompletion completion)
 => Completed?.Invoke((ICommandCompletion <TSpec>)completion);
Exemplo n.º 4
0
 public static IAppMessage CompletedCommand(ICommandCompletion completion)
 => completion.Succeeded ?
 inform($"Finished executing {completion.CommandName} command: {completion.CompleteMessage}")
     : error($"Finished executing {completion.CommandName} command: {completion.CompleteMessage}");