AppStartSettings
StockSharp.Configuration
Configuración de inicio de aplicación.
Implementa: IAsyncPersistable
Propiedades
Language
public string Language { get; set; }
value = appStartSettings.Language
appStartSettings.Language = value
Lenguaje de aplicación seleccionado.
Online
public bool Online { get; set; }
value = appStartSettings.Online
appStartSettings.Online = value
Modo en línea.
TimeZone
public TimeZoneInfo TimeZone { get; set; }
value = appStartSettings.TimeZone
appStartSettings.TimeZone = value
Zona horaria de aplicación preferida.
Métodos
TryLoad
public static AppStartSettings TryLoad(IFileSystem fileSystem)
result = AppStartSettings.TryLoad(fileSystem)
Pruebe la configuración de carga, si existe el archivo config.
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
Devuelve: The settings, or when there are none.
TrySave
public void TrySave(IFileSystem fileSystem)
appStartSettings.TrySave(fileSystem)
Guardar ajustes en PlatformConfigurationFile@ si se define.
TrySaveAsync
public ValueTask TrySaveAsync(IFileSystem fileSystem, CancellationToken cancellationToken)
result = appStartSettings.TrySaveAsync(fileSystem, cancellationToken)
Save settings into PlatformConfigurationFile.
- fileSystem
- IFileSystem
- cancellationToken
- CancellationToken
Devuelve: ValueTask