CalDavSynchronizer.Ui.Options.ViewModels.NetworkSettingsViewModel.CreateProxyOptions C# (CSharp) Метод

CreateProxyOptions() публичный Метод

public CreateProxyOptions ( ) : ProxyOptions
Результат CalDavSynchronizer.Contracts.ProxyOptions
    public ProxyOptions CreateProxyOptions ()
    {
      return new ProxyOptions
             {
                 ProxyUseDefault = _proxyUseDefault,
                 ProxyUseManual = _proxyUseManual,
                 ProxyUrl = _proxyUrl,
                 ProxyUserName = _proxyUserName,
                 ProxyPassword = _proxyPassword
             };
    }

Usage Example

Пример #1
0
 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()));
 }
All Usage Examples Of CalDavSynchronizer.Ui.Options.ViewModels.NetworkSettingsViewModel::CreateProxyOptions