Exemple #1
0
 /* public FTPcs(string serverpath, string login, string pass)
  {
      _login = login;
      _pass = pass;
      _server = serverpath; //ftp::jakisserwer.pl/folder/
  }*/
 public static bool Send(BankTransfer transfer)
 {
     string bankname = transfer.DestinationBank;
     var sender = new SendFile();
     var desinationfilepath = _server + bankname + ".txt"; //ftp::jakisserwer.pl/folder/plik.txt
     var file = bankname + ".txt";
     return sender.Send(file, desinationfilepath, _login, _pass);
 }
Exemple #2
0
        /* public FTPcs(string serverpath, string login, string pass)
         * {
         *   _login = login;
         *   _pass = pass;
         *   _server = serverpath; //ftp::jakisserwer.pl/folder/
         * }*/

        public static bool Send(BankTransfer transfer)
        {
            string bankname           = transfer.DestinationBank;
            var    sender             = new SendFile();
            var    desinationfilepath = _server + bankname + ".txt"; //ftp::jakisserwer.pl/folder/plik.txt
            var    file = bankname + ".txt";

            return(sender.Send(file, desinationfilepath, _login, _pass));
        }