FrontendRequestContext Class

Provides generic context for downstream server applications to get details of a request that originated at the frontend. The context is meant for use in applications that do NOT require authorization.

see AuthorizedFrontendRequestContext

Extends

Methods

Name Description
constructor(activityId?: string): FrontendRequestContext Create a new context for agent applications or long running frontend operations to pass to various services  

Inherited methods

Name Inherited from Description
enter(): FrontendRequestContext ClientRequestContext Set or reset the current ClientRequestContext to be this object.
fromJSON(json: ClientRequestContextProps): ClientRequestContext Static ClientRequestContext  

Inherited properties

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

Defined in

Last Updated: 29 November, 2022