Class ProxySettings
- Namespace
- StockSharp.Xaml
- Assembly
- StockSharp.Xaml.dll
Proxy-server settings.
[Display(ResourceType = typeof(LocalizedStrings), Name = "ProxyServerSettings")]
[TypeConverter(typeof(ExpandableObjectConverter))]
public class ProxySettings : IPersistable
- Inheritance
-
ProxySettings
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
ProxySettings()
public ProxySettings()
Properties
Address
Proxy server address.
[Display(ResourceType = typeof(LocalizedStrings), GroupName = "ProxyServer", Name = "Address", Description = "ProxyAddress", Order = 2)]
public EndPoint Address { get; set; }
Property Value
ByPassOnLocal
Use for local addresses.
[Display(ResourceType = typeof(LocalizedStrings), GroupName = "ProxyServer", Name = "Locally", Description = "UseLocalAddress", Order = 5)]
public bool ByPassOnLocal { get; set; }
Property Value
Login
Login.
[Display(ResourceType = typeof(LocalizedStrings), GroupName = "ProxyServer", Name = "Login", Description = "LoginDot", Order = 10)]
public string Login { get; set; }
Property Value
Password
Password.
[Display(ResourceType = typeof(LocalizedStrings), GroupName = "ProxyServer", Name = "Password", Description = "PasswordDot", Order = 15)]
public SecureString Password { get; set; }
Property Value
UseCredentials
Use login and password authorization.
[Display(ResourceType = typeof(LocalizedStrings), GroupName = "ProxyServer", Name = "Authorization", Description = "UseCredentials", Order = 8)]
public bool UseCredentials { get; set; }
Property Value
UseProxy
To use proxy server.
[Display(ResourceType = typeof(LocalizedStrings), GroupName = "ProxyServer", Name = "Active3", Description = "UseProxyServer", Order = 1)]
public bool UseProxy { get; set; }
Property Value
Methods
ApplyProxySettings(bool)
To set proxy settings for the application.
public void ApplyProxySettings(bool save = false)
Parameters
save
boolSave changes into ProxyConfigurationFile.
GetProxySettings()
To get proxy settings.
public static ProxySettings GetProxySettings()
Returns
- ProxySettings
Proxy-server settings.
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()