コード例 #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,
            });
        }
コード例 #2
0
 public async Task <bool> Upload(string filePath, string uploadName, UserRequestUploadSettings settings)
 {
     return(await UploadFile(CreateClient(settings), filePath, uploadName));
 }
コード例 #3
0
        private WebDavClient CreateClient(UserRequestUploadSettings settings)
        {
            var @params = CreateParams(settings);

            return(new WebDavClient(@params));
        }