AppStartSettings
StockSharp.Configuration
Configuração inicial da aplicação.
Implementa: IAsyncPersistable
Propriedades
Language
public string Language { get; set; }
value = appStartSettings.Language
appStartSettings.Language = value
Língua selecionada para aplicação.
Online
public bool Online { get; set; }
value = appStartSettings.Online
appStartSettings.Online = value
Modo online.
TimeZone
public TimeZoneInfo TimeZone { get; set; }
value = appStartSettings.TimeZone
appStartSettings.TimeZone = value
Fuso horário de aplicação preferido.
Métodos
TryLoad
public static AppStartSettings TryLoad(IFileSystem fileSystem)
result = AppStartSettings.TryLoad(fileSystem)
Tente as configurações de carga, se o arquivo de configuração existir.
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
Retorna: The settings, or when there are none.
TrySave
public void TrySave(IFileSystem fileSystem)
appStartSettings.TrySave(fileSystem)
Salve as configurações em PlatformConfigurationFile se estiver definido.
TrySaveAsync
public ValueTask TrySaveAsync(IFileSystem fileSystem, CancellationToken cancellationToken)
result = appStartSettings.TrySaveAsync(fileSystem, cancellationToken)
Save settings into PlatformConfigurationFile.
- fileSystem
- IFileSystem
- cancellationToken
- CancellationToken
Retorna: ValueTask