public IWebDavClient CreateWebDavClient() { return(SynchronizerFactory.CreateWebDavClient( _serverSettingsViewModel.UserName, _serverSettingsViewModel.UseAccountPassword ? _outlookAccountPasswordProvider.GetPassword(_outlookFolderViewModel.FolderAccountName) : _serverSettingsViewModel.Password, _serverSettingsViewModel.CalenderUrl, TimeSpan.Parse(ConfigurationManager.AppSettings["calDavConnectTimeout"]), _serverSettingsViewModel.ServerAdapterType, _networkSettingsViewModel.CloseConnectionAfterEachRequest, _networkSettingsViewModel.PreemptiveAuthentication, _networkSettingsViewModel.ForceBasicAuthentication, _networkSettingsViewModel.CreateProxyOptions())); }
private IWebDavClient CreateWebDavClient(NetworkSettingsViewModel networkSettings, GeneralOptions generalOptions, string davUrl) { return(SynchronizerFactory.CreateWebDavClient( UserName, UseAccountPassword ? _outlookAccountPasswordProvider.GetPassword(null) : Password, davUrl, generalOptions.CalDavConnectTimeout, ServerAdapterType.WebDavHttpClientBased, networkSettings.CloseConnectionAfterEachRequest, networkSettings.PreemptiveAuthentication, networkSettings.ForceBasicAuthentication, networkSettings.CreateProxyOptions(), generalOptions.AcceptInvalidCharsInServerResponse)); }
public IWebDavClient CreateWebDavClient(Uri url) { return(SynchronizerFactory.CreateWebDavClient( _serverSettingsViewModel.UserName, _serverSettingsViewModel.UseAccountPassword ? _outlookAccountPasswordProvider.GetPassword(_outlookFolderViewModel.FolderAccountName) : _serverSettingsViewModel.Password, url.ToString(), TimeSpan.Parse(ConfigurationManager.AppSettings["calDavConnectTimeout"]), _serverSettingsViewModel.ServerAdapterType, _networkSettingsViewModel.CloseConnectionAfterEachRequest, _networkSettingsViewModel.PreemptiveAuthentication, _networkSettingsViewModel.ForceBasicAuthentication, _networkSettingsViewModel.CreateProxyOptions(), _generalOptions.AcceptInvalidCharsInServerResponse)); }
public IWebDavClient CreateWebDavClient() { return(SynchronizerFactory.CreateWebDavClient( _userNameTextBox.Text, _useAccountPasswordCheckBox.Checked ? _outlookAccountPasswordProvider.GetPassword(_dependencies.FolderAccountName) : SecureStringUtility.ToSecureString(_passwordTextBox.Text), _calenderUrlTextBox.Text, TimeSpan.Parse(ConfigurationManager.AppSettings["calDavConnectTimeout"]), ServerAdapterType.WebDavHttpClientBased, _networkAndProxyOptions.CloseConnectionAfterEachRequest, _networkAndProxyOptions.PreemptiveAuthentication, _networkAndProxyOptions.ForceBasicAuthentication, _networkAndProxyOptions.ProxyOptions)); }
public SecureString GetEffectivePassword(IOutlookAccountPasswordProvider outlookAccountPasswordProvider) { return(UseAccountPassword ? outlookAccountPasswordProvider.GetPassword(OutlookFolderAccountName) : Password); }