public void SendFile(string local, string remote) { if (_fileSendSession != null) { _fileSendSession.SendFile(local, remote); } }
public bool ExecuteNext(FileSendSession client) { if (_commands.Count == 0) { LogService.Info(this, "Command buffer is empty!"); return(false); } if (_currentCommand >= _commands.Count) { LogService.Info(this, "Command buffer finished executing!"); if (OnDone != null) { OnDone(); } return(false); } Command cmd = _commands[_currentCommand]; switch (cmd.type) { case CommandType.SETWORKINGDIR: client.SetWorkingDir(cmd.remote); break; case CommandType.CREATEDIR: client.CreateDirectory(cmd.remote); break; case CommandType.SENDFILE: client.SendFile(cmd.local, cmd.remote); break; default: break; } return(true); }