// 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, }); }
public async Task <bool> Upload(string filePath, string uploadName, UserRequestUploadSettings settings) { return(await UploadFile(CreateClient(settings), filePath, uploadName)); }
private WebDavClient CreateClient(UserRequestUploadSettings settings) { var @params = CreateParams(settings); return(new WebDavClient(@params)); }