ProxySettings

StockSharp.Xaml

代理服务器设置 。

实现: IPersistable

属性

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

要使用代理服务器 。

方法

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

设置应用程序的代理设置 。

fileSystem
文件系统。
save
Save changes into ProxyConfigurationFile.
GetProxySettings
public static ProxySettings GetProxySettings(IFileSystem fileSystem)
result = ProxySettings.GetProxySettings(fileSystem)

获取代理设置 。

fileSystem
文件系统。

返回值: 代理服务器设置 。

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

装入设置 。

storage
设置存储 。
Save
public void Save(SettingsStorage storage)
proxySettings.Save(storage)

保存设置 。

storage
设置存储 。
ToString
public override string ToString()
result = proxySettings.ToString()

转换为行代表.

返回值: 弦乐表演.