Class HostContext
- Namespace
- Tripous
- Assembly
- Tripous.dll
Provides access to the current application execution context.
HostContext because the AppContext is already taken by .Net.
public sealed class HostContext
- Inheritance
-
HostContext
- Inherited Members
- Extension Methods
Properties
CultureCode
The current UI culture code, e.g. en-US, el-GR.
public string CultureCode { get; }
Property Value
CurrentUser
The currently authenticated user.
public AppUser CurrentUser { get; set; }
Property Value
IsAuthenticated
True when a user is authenticated.
public bool IsAuthenticated { get; }
Property Value
LanguageCode
The current language code, e.g. en, el.
public string LanguageCode { get; }
Property Value
Properties
A bag of custom application properties.
public Dictionary<string, object> Properties { get; }