Table of Contents

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

string

CurrentUser

The currently authenticated user.

public AppUser CurrentUser { get; set; }

Property Value

AppUser

IsAuthenticated

True when a user is authenticated.

public bool IsAuthenticated { get; }

Property Value

bool

LanguageCode

The current language code, e.g. en, el.

public string LanguageCode { get; }

Property Value

string

Properties

A bag of custom application properties.

public Dictionary<string, object> Properties { get; }

Property Value

Dictionary<string, object>