ProxySettings

StockSharp.Xaml

プロキシサーバーの設定。

実装: IAsyncPersistable

プロパティ

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

プロキシサーバーアドレス。

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

ローカルアドレスに使用します。

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

ログイン

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

パスワード

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

ログインとパスワードの認証を使用します。

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

プロキシサーバーを使用するため。

メソッド

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

戻り値: 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

戻り値: Proxy-server settings.

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = proxySettings.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

戻り値: Task

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = proxySettings.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

戻り値: Task

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

ライン表現に換算します。

戻り値: 弦のパフォーマンス。