Changed a lot LOL

This commit is contained in:
2020-11-04 17:08:13 -05:00
parent d06925204d
commit 3f6faacab8
21 changed files with 489 additions and 64 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.IO;
using System.Net;
namespace PartSource.Automation.Services
{
public class FtpService
{
public void Download(string filename)
{
//FtpWebRequest request = (FtpWebRequest)WebRequest.Create($"{_ftpConfiguration.Url}/{filename}");
//request.Credentials = new NetworkCredential(_ftpConfiguration.Username, _ftpConfiguration.Password);
//request.Method = WebRequestMethods.Ftp.DownloadFile;
//using FtpWebResponse response = (FtpWebResponse)request.GetResponse();
//using Stream responseStream = response.GetResponseStream();
//using FileStream fileStream = new FileStream($"%APPDATALOCAL%\\{filename}", FileMode.Create);
//responseStream.CopyTo(fileStream);
}
}
}