Skip to content

ControllerWithRequestContext Class ​

Definition ​

Base MVC controller that wires an IRequestContext into the request pipeline and provides hook points for request lifecycle completion.

  • Namespace: JASE.Web
  • Assembly: JASE.Web.dll

Constructors ​

NameDescription
ControllerWithRequestContext(IRequestContext requestContext)Initializes the controller with the per-request IRequestContext from dependency injection and starts internal timers used for action and result timing.

Properties ​

NameDescription
RequestIdHeaderGets the response header name used to emit the request id for correlation.
SkipRequestTrackingGets a value indicating whether request tracking is disabled.

Methods ​

NameDescription
bool IsDisposed()Returns if the controller has been disposed.
void OnActionExecuted(ActionExecutedContext context)
void OnActionExecuting(ActionExecutingContext context)
IActionResult OnApplicationNotInitialized()Handles requests when application initialization is configured but has not completed.
void SetRequestIdHeader(string value)Sets the response header name used to emit the request id for correlation.
void SetSkipRequestTracking(bool value)Enables or disables request tracking.