AppStartSettings
StockSharp.Configuration
Application start configuration.
Implements: IAsyncPersistable
Properties
Language
public string Language { get; set; }
value = appStartSettings.Language
appStartSettings.Language = value
Selected application language.
Online
public bool Online { get; set; }
value = appStartSettings.Online
appStartSettings.Online = value
Online mode.
TimeZone
public TimeZoneInfo TimeZone { get; set; }
value = appStartSettings.TimeZone
appStartSettings.TimeZone = value
Preferred application time zone.
Methods
TryLoad
public static AppStartSettings TryLoad(IFileSystem fileSystem)
result = AppStartSettings.TryLoad(fileSystem)
Try load settings, if config file exists.
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
Returns: The settings, or when there are none.
TrySave
public void TrySave(IFileSystem fileSystem)
appStartSettings.TrySave(fileSystem)
Save settings into PlatformConfigurationFile if it is defined.
TrySaveAsync
public ValueTask TrySaveAsync(IFileSystem fileSystem, CancellationToken cancellationToken)
result = appStartSettings.TrySaveAsync(fileSystem, cancellationToken)
Save settings into PlatformConfigurationFile.
- fileSystem
- IFileSystem
- cancellationToken
- CancellationToken
Returns: ValueTask