IContext Interface |
Provide the context of execution.
Namespace: AskiaPortalCmn
The IContext type exposes the following members.
Name | Description | |
---|---|---|
![]() | Application |
Get the application currently using the API.
|
![]() | AuthenticationType |
Get the type of authentication
|
![]() | ClientTimeOffset |
Get or set the time offset of client application timezone
|
![]() | CreatedAt |
Get the date of the context creation
|
![]() | Guid |
Get the GUID of the context
|
![]() | IpAddress |
Get or set the client IP Address
|
![]() | Properties |
Get or set arbitrary properties to the context.
|
![]() | SessionCreatedAt |
Indicates the date of the session creation.
|
![]() | SessionGuid |
Get the GUID of the session.
|
![]() | ThreadId |
Get the id of the current managed thread
|
![]() | Translator |
Get the translator associated with
the current user language or the default language when the user is not defined |
![]() | UrlReferrer |
Get or set the URL referrer for web request
|
![]() | User |
Get the current user
|
Name | Description | |
---|---|---|
![]() | BuildSessionKey |
Build a session key.
|
![]() | Validate |
Indicates if the context is valid.
Check if the user have a valid authentication
|
A context of execution is require to instantiate almost all objects.
Use the ContextFactory to properly instantiate a new context