Beispiel #1
0
        private void Disconnected()
        {
            Receive <Connect>((cmd) =>
            {
                _connection = _clientFactory.CreateSftpClient();
                _connection.Connect();

                Become(Connected);
            });
        }
Beispiel #2
0
        private void Disconnected()
        {
            Receive <ListDirectory>((cmd) =>
            {
                this.Stash.Stash();

                _connection = _clientFactory.CreateSftpClient();
                _connection.Connect();

                this.Stash.UnstashAll();
                StartIdlePeriod();
                Become(Connected);
            });
        }
 private void Connect()
 {
     _connection = _clientFactory.CreateSftpClient();
     _connection.Connect();
 }