AppStartSettings

StockSharp.Configuration

Konfiguration des Anwendungsstarts.

Implementiert: IAsyncPersistable

Eigenschaften

Language
public string Language { get; set; }
value = appStartSettings.Language
appStartSettings.Language = value

Ausgewählte Anwendungssprache.

Online
public bool Online { get; set; }
value = appStartSettings.Online
appStartSettings.Online = value

Online-Modus.

TimeZone
public TimeZoneInfo TimeZone { get; set; }
value = appStartSettings.TimeZone
appStartSettings.TimeZone = value

Bevorzugte Anwendungszeitzone.

Methoden

TryLoad
public static AppStartSettings TryLoad(IFileSystem fileSystem)
result = AppStartSettings.TryLoad(fileSystem)

Versuchen Sie die Ladeeinstellungen, wenn die Konfigurationsdatei vorhanden ist.

TryLoadAsync
public static ValueTask<AppStartSettings> TryLoadAsync(IFileSystem fileSystem, CancellationToken cancellationToken)
result = AppStartSettings.TryLoadAsync(fileSystem, cancellationToken)

Try load settings, if config file exists.

fileSystem
File system.
cancellationToken
CancellationToken

Rückgabe: The settings, or when there are none.

TrySave
public void TrySave(IFileSystem fileSystem)
appStartSettings.TrySave(fileSystem)

Speichern Sie Einstellungen in PlatformConfigurationFile, wenn es definiert ist.

TrySaveAsync
public ValueTask TrySaveAsync(IFileSystem fileSystem, CancellationToken cancellationToken)
result = appStartSettings.TrySaveAsync(fileSystem, cancellationToken)

Save settings into PlatformConfigurationFile.

fileSystem
IFileSystem
cancellationToken
CancellationToken

Rückgabe: ValueTask