AuthorizedClientRequestContext Class

Provides generic context for a server application to get details of a particular request that originated at the client. This context includes an AccessToken that carries authorization information. For services that do not require authorization it's sufficient to pass an instance of the base class ClientRequestContext.

see ClientRequestContext rules.

see ClientRequestContext

Extends

Implements

Methods

Name Description
constructor(accessToken: AccessToken, activityId: GuidString = Guid.createValue(), applicationId: string = "", applicationVersion: string = "", sessionId: GuidString = Guid.empty): AuthorizedClientRequestContext Constructor Beta

Inherited methods

Name Inherited from Description
enter(): this ClientRequestContext Set or reset the current ClientRequestContext to be this object.

Properties

Name Type Description
accessToken AccessToken The access token value of the client application. Beta

Inherited properties

Name Type Inherited from Description
_current ProtectedStatic ClientRequestContext ClientRequestContext  
activityId GuidString ClientRequestContext Used for logging to correlate all service requests that originated from this client request
applicationId string ClientRequestContext Used for logging and usage tracking to identify the application that created this client request
applicationVersion string ClientRequestContext Used for logging and usage tracking to identify the application version that created this client request
current Static ClientRequestContext ClientRequestContext Get the current client request context
sessionId GuidString ClientRequestContext Used for logging to identify the session that created this client request
useContextForRpc boolean ClientRequestContext  

Defined in

Last Updated: 20 September, 2019