Appearance
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
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
RequestIdHeader | Gets the response header name used to emit the request id for correlation. |
SkipRequestTracking | Gets a value indicating whether request tracking is disabled. |
Methods
| Name | Description |
|---|---|
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. |