コード例 #1
0
ファイル: Component.cs プロジェクト: TobyXYan/SyncAsyncSystem
        protected ICommandProxy EnqueueCommand(SimpleCommandDelegate commandDelegate, string description)
        {
            var command = CreateCommand(commandDelegate, description);

            _invoker.Submit(command);
            return(command);
        }
コード例 #2
0
 public Command(SimpleCommandDelegate commandDelegate, string description, string source)
     : this(commandDelegate)
 {
     ValidateDescriptionAndSource(description, source);
 }
コード例 #3
0
 public Command(SimpleCommandDelegate simpleCommandDelegate)
     : this()
 {
     _commandDelegate = command => simpleCommandDelegate();
 }
コード例 #4
0
ファイル: Component.cs プロジェクト: TobyXYan/SyncAsyncSystem
 protected Command CreateCommand(SimpleCommandDelegate commandDelegate, string description)
 {
     return(new Command(commandDelegate, description, Name));
 }