Table of Contents

Interface IApplication

Namespace
CarinaStudio
Assembly
CarinaStudio.AppBase.Application.dll

Application interface. This is the top-level object for application infrastructure.

public interface IApplication : INotifyPropertyChanged, IThreadDependent, ISynchronizable
Inherited Members
Extension Methods

Properties

Assembly

Get Assembly of application.

Assembly Assembly { get; }

Property Value

Assembly

CultureInfo

Get CultureInfo currently used by application.

CultureInfo CultureInfo { get; }

Property Value

CultureInfo

IsShutdownStarted

Whether application shutdown has been started or not.

bool IsShutdownStarted { get; }

Property Value

bool

LoggerFactory

ILoggerFactory to create logger.

ILoggerFactory LoggerFactory { get; }

Property Value

ILoggerFactory

PersistentState

Get default ISettings to keep persistent state of application.

ISettings PersistentState { get; }

Property Value

ISettings

RootPrivateDirectoryPath

Path to root of private directory which is suitable to be accessed by this application.

string RootPrivateDirectoryPath { get; }

Property Value

string

Settings

Get default application level user settings.

ISettings Settings { get; }

Property Value

ISettings

Methods

GetObservableString(string)

Get string from resources according to given key as IObservable<T>.

IObservable<string?> GetObservableString(string key)

Parameters

key string

Key of string to get.

Returns

IObservable<string>

IObservable<T>.

GetString(string, string?)

Get string from resources according to given key and current settings or system language.

string? GetString(string key, string? defaultValue = null)

Parameters

key string

Key of string to get.

defaultValue string

Default string.

Returns

string

String.

Events

StringsUpdated

Raised when string resources updated.

event EventHandler StringsUpdated

Event Type

EventHandler