AppStartSettings

StockSharp.Configuration

アプリケーションの起動設定。

実装: IAsyncPersistable

プロパティ

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

選択されたアプリケーション言語。

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

オンラインモード。

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

優先するアプリケーションタイムゾーン。

メソッド

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

設定ファイルが存在する場合は、読み込み設定を試みます。

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

戻り値: The settings, or when there are none.

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

設定をPlatformConfigurationFileに保存します。

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

Save settings into PlatformConfigurationFile.

fileSystem
IFileSystem
cancellationToken
CancellationToken

戻り値: ValueTask