ProxySettings

StockSharp.Xaml

Proxy-server settings.

Implements: IPersistable

Properties

Address
public EndPoint Address { get; set; }
value = proxySettings.Address
proxySettings.Address = value

Proxy server address.

ByPassOnLocal
public bool ByPassOnLocal { get; set; }
value = proxySettings.ByPassOnLocal
proxySettings.ByPassOnLocal = value

Use for local addresses.

Login
public string Login { get; set; }
value = proxySettings.Login
proxySettings.Login = value

Login.

Password
public SecureString Password { get; set; }
value = proxySettings.Password
proxySettings.Password = value

Password.

UseCredentials
public bool UseCredentials { get; set; }
value = proxySettings.UseCredentials
proxySettings.UseCredentials = value

Use login and password authorization.

UseProxy
public bool UseProxy { get; set; }
value = proxySettings.UseProxy
proxySettings.UseProxy = value

To use proxy server.

Methods

ApplyProxySettings
public void ApplyProxySettings(IFileSystem fileSystem, bool save)
proxySettings.ApplyProxySettings(fileSystem, save)

To set proxy settings for the application.

fileSystem
File system.
save
Save changes into ProxyConfigurationFile.
GetProxySettings
public static ProxySettings GetProxySettings(IFileSystem fileSystem)
result = ProxySettings.GetProxySettings(fileSystem)

To get proxy settings.

fileSystem
File system.

Returns: Proxy-server settings.

Load
public void Load(SettingsStorage storage)
proxySettings.Load(storage)

Load settings.

storage
Settings storage.
Save
public void Save(SettingsStorage storage)
proxySettings.Save(storage)

Save settings.

storage
Settings storage.
ToString
public override string ToString()
result = proxySettings.ToString()

Преобразовать к строковому представлению.

Returns: Строковое представление.