Ejemplo n.º 1
0
 public Builder SetCommandRecognizer(ICommandRecognizer commandRecognizer)
 {
     _commandHandler._commandRecognizer = commandRecognizer;
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Default constructor. Also there is builder that help to testing
 /// this class and set custom executors and recognizers.
 /// </summary>
 public CommandHandler()
 {
     _nativeCommandExecutor = new NativeCommandExecutor();
     _editorCommandExecutor = new EditorCommandExecutor();
     _commandRecognizer     = new CommandRecognizer();
 }