Exemplo n.º 1
0
        public RemoteTerminalClient(
            IRemoteApiMap remoteApiMap,
            IRemoteApiOperator remoteApiOperator)
        {
            _remoteApiMap      = remoteApiMap;
            _remoteApiOperator = remoteApiOperator;

            _remoteApiMap.RegisterCommand("hello", HelloHandler);
        }
Exemplo n.º 2
0
 public void RegisterCommand(string name, Action handler, string description = "")
 {
     SafeExecution.TryCatch(() => _remoteApiMap.RegisterCommand(name, handler, description),
                            exception => _recorder.DefaultException(this, exception));
 }