/// <summary> /// Sends message. /// </summary> private void Send() { try{ using (FTP_Client ftp = new FTP_Client()){ ftp.Connect(m_Server, m_Port); ftp.Authenticate(m_User, m_Password); ftp.SetCurrentDir(m_Folder); ftp.StoreFile(m_FileName, m_DataStream); } } catch (Exception x) { Error.DumpError(x, new System.Diagnostics.StackTrace()); } }
private void Send() { try { using (FTP_Client fTP_Client = new FTP_Client()) { fTP_Client.Connect(this.m_Server, this.m_Port); fTP_Client.Authenticate(this.m_User, this.m_Password); fTP_Client.SetCurrentDir(this.m_Folder); fTP_Client.StoreFile(this.m_FileName, this.m_DataStream); } } catch (Exception x) { Error.DumpError(x); } }