ProxySettings

StockSharp.Xaml

Proxy-Server-Einstellungen.

Implementiert: IPersistable

Eigenschaften

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

Proxy-Server-Adresse.

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

Verwenden Sie für lokale Adressen.

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

Kennwort.

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

Verwenden Sie die Login- und Passwortautorisierung.

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

Um Proxy-Server zu verwenden.

Methoden

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

Proxy-Einstellungen für die Anwendung festlegen.

fileSystem
Dateisystem.
save
Speichern Sie Änderungen in ProxyConfigurationFile.
GetProxySettings
public static ProxySettings GetProxySettings(IFileSystem fileSystem)
result = ProxySettings.GetProxySettings(fileSystem)

Um Proxy-Einstellungen zu erhalten.

fileSystem
Dateisystem.

Rückgabe: Proxy-Server-Einstellungen.

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

Lasteinstellungen.

storage
Einstellungen Lagerung.
Save
public void Save(SettingsStorage storage)
proxySettings.Save(storage)

Einstellungen speichern.

storage
Einstellungen Lagerung.
ToString
public override string ToString()
result = proxySettings.ToString()

Konvertieren Sie in eine Liniendarstellung.

Rückgabe: String-Leistung.