ClientRequestContext Class

Provides generic context for a server application to get details of a particular request that originated at the client. This context is used to pass information for various purposes including usage tracking and logging. Services that require authorization are passed an instance of the subclass: AuthorizedClientRequestContext.

see ClientRequestContext rules.

see AuthorizedClientRequestContext

Implements

Methods

Name Description
constructor(activityId: GuidString = Guid.createValue(), applicationId: string = "", applicationVersion: string = "", sessionId: GuidString = Guid.empty): ClientRequestContext Create a new ClientRequestContext  
enter(): this Set or reset the current ClientRequestContext to be this object.  

Properties

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

Defined in

Last Updated: 20 September, 2019