Click or drag to resize

IContext Interface

Provide the context of execution.

Namespace:  AskiaPortalCmn
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
public interface IContext

The IContext type exposes the following members.

Properties
  NameDescription
Public propertyApplication
Get the application currently using the API.
Public propertyAuthenticationType
Get the type of authentication
Public propertyClientTimeOffset
Get or set the time offset of client application timezone
Public propertyCreatedAt
Get the date of the context creation
Public propertyGuid
Get the GUID of the context
Public propertyIpAddress
Get or set the client IP Address
Public propertyProperties
Get or set arbitrary properties to the context.
Public propertySessionCreatedAt
Indicates the date of the session creation.
Public propertySessionGuid
Get the GUID of the session.
Public propertyThreadId
Get the id of the current managed thread
Public propertyTranslator
Get the translator associated with the current user language
or the default language when the user is not defined
Public propertyUrlReferrer
Get or set the URL referrer for web request
Public propertyUser
Get the current user
Top
Methods
  NameDescription
Public methodBuildSessionKey
Build a session key.
Public methodValidate
Indicates if the context is valid. Check if the user have a valid authentication
Top
Remarks

A context of execution is require to instantiate almost all objects.
Use the ContextFactory to properly instantiate a new context

See Also