Exemplo n.º 1
0
        // F e a t u r e s

        private WebDavClientParams CreateParams(UserRequestUploadSettings settings)
        {
            return(new WebDavClientParams()
            {
                BaseAddress = new Uri(crypter.DecryptData(settings.Link)),
                Credentials = new NetworkCredential(crypter.DecryptData(settings.Username), crypter.DecryptData(settings.Password)),
                UseProxy = false,
            });
        }
Exemplo n.º 2
0
 public async Task <bool> Upload(string filePath, string uploadName, UserRequestUploadSettings settings)
 {
     return(await UploadFile(CreateClient(settings), filePath, uploadName));
 }
Exemplo n.º 3
0
        private WebDavClient CreateClient(UserRequestUploadSettings settings)
        {
            var @params = CreateParams(settings);

            return(new WebDavClient(@params));
        }