ProxySettings
StockSharp.Xaml
Proxy-server settings.
Implements: IAsyncPersistable
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
ApplyProxySettingsAsync
public Task ApplyProxySettingsAsync(IFileSystem fileSystem, bool save, CancellationToken cancellationToken)
result = proxySettings.ApplyProxySettingsAsync(fileSystem, save, cancellationToken)
To set proxy settings for the application.
- fileSystem
- File system.
- save
- Save changes into ProxyConfigurationFile.
- cancellationToken
- CancellationToken
Returns: Task
GetProxySettingsAsync
public static Task<ProxySettings> GetProxySettingsAsync(IFileSystem fileSystem, CancellationToken cancellationToken)
result = ProxySettings.GetProxySettingsAsync(fileSystem, cancellationToken)
To get proxy settings.
- fileSystem
- File system.
- cancellationToken
- CancellationToken
Returns: Proxy-server settings.
LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = proxySettings.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = proxySettings.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
ToString
public override string ToString()
result = proxySettings.ToString()
Returns a string representation of the tuple, with values separated by commas.
Returns: A string representing the tuple's values.