Exemple #1
0
 public CommandedValuesCreator(CommandDispatcher commandDispatcher)
 {
     CommandDispatcher = commandDispatcher ?? throw new NullReferenceException(nameof(commandDispatcher));
 }
Exemple #2
0
 public CommandedValue(T initValue, CommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
     Value = initValue;
 }
Exemple #3
0
 /// <summary>
 /// Выполнить команду
 /// </summary>
 /// <param name="commandExecutor">Объект выполнения команд</param>
 protected void Execute(CommandExecutor commandExecutor)
 {
     CommandDispatcher.AddAndExecute(commandExecutor);
 }
Exemple #4
0
 public CommandedValue(CommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
 }
Exemple #5
0
 public CommandedObject(CommandDispatcher commandDispatcher)
 {
     CommandDispatcher = commandDispatcher ?? throw new NullReferenceException(COMMAND_DISPATCHER_NULL_MESSAGE);
 }