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
CultureInfo
Get CultureInfo currently used by application.
CultureInfo CultureInfo { get; }
Property Value
IsShutdownStarted
Whether application shutdown has been started or not.
bool IsShutdownStarted { get; }
Property Value
LoggerFactory
ILoggerFactory to create logger.
ILoggerFactory LoggerFactory { get; }
Property Value
PersistentState
Get default ISettings to keep persistent state of application.
ISettings PersistentState { get; }
Property Value
RootPrivateDirectoryPath
Path to root of private directory which is suitable to be accessed by this application.
string RootPrivateDirectoryPath { get; }
Property Value
Settings
Get default application level user settings.
ISettings Settings { get; }
Property Value
Methods
GetObservableString(string)
Get string from resources according to given key as IObservable<T>.
IObservable<string?> GetObservableString(string key)
Parameters
key
stringKey of string to get.
Returns
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
Returns
- string
String.
Events
StringsUpdated
Raised when string resources updated.
event EventHandler StringsUpdated