Interface IApplication
Application interface. This is the top-level object for application infrastructure.
Inherited Members
Namespace: CarinaStudio
Assembly: CarinaStudio.AppBase.Application.dll
Syntax
public interface IApplication : INotifyPropertyChanged, IThreadDependent, ISynchronizable
Properties
| Improve this Doc View SourceAssembly
Get Assembly of application.
Declaration
Assembly Assembly { get; }
Property Value
Type | Description |
---|---|
Assembly |
CultureInfo
Get Culture
Declaration
CultureInfo CultureInfo { get; }
Property Value
Type | Description |
---|---|
Culture |
IsShutdownStarted
Whether application shutdown has been started or not.
Declaration
bool IsShutdownStarted { get; }
Property Value
Type | Description |
---|---|
System. |
LoggerFactory
Declaration
ILoggerFactory LoggerFactory { get; }
Property Value
Type | Description |
---|---|
ILogger |
PersistentState
Get default ISettings to keep persistent state of application.
Declaration
ISettings PersistentState { get; }
Property Value
Type | Description |
---|---|
ISettings |
RootPrivateDirectoryPath
Path to root of private directory which is suitable to be accessed by this application.
Declaration
string RootPrivateDirectoryPath { get; }
Property Value
Type | Description |
---|---|
System. |
Settings
Get default application level user settings.
Declaration
ISettings Settings { get; }
Property Value
Type | Description |
---|---|
ISettings |
Methods
| Improve this Doc View SourceGetObservableString(String)
Get string from resources according to given key as
Declaration
IObservable<string?> GetObservableString(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | Key of string to get. |
Returns
Type | Description |
---|---|
IObservable<System. |
GetString(String, Nullable<String>)
Get string from resources according to given key and current settings or system language.
Declaration
string? GetString(string key, string? defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | Key of string to get. |
System. |
defaultValue | Default string. |
Returns
Type | Description |
---|---|
System. |
String. |
Events
| Improve this Doc View SourceStringsUpdated
Raised when string resources updated.
Declaration
event EventHandler StringsUpdated
Event Type
Type | Description |
---|---|
Event |