Class ExceptionMiddlewareExtension
Extension methods for configuring exception handling middleware in the application pipeline.
Inherited Members
Namespace: DataWeb.MiddlewareExtensions
Assembly: DataWeb.Core.dll
Syntax
public static class ExceptionMiddlewareExtension
Methods
ConfigureExceptionHandler(IApplicationBuilder, IAppErrorService, IUser)
Configures the exception handling middleware to catch and log exceptions in the application.
Declaration
public static void ConfigureExceptionHandler(this IApplicationBuilder app, IAppErrorService appErrorService, IUser user)
Parameters
Type | Name | Description |
---|---|---|
IApplicationBuilder | app | The IApplicationBuilder instance. |
IAppErrorService | appErrorService | The IAppErrorService instance used for logging errors. |
IUser | user | The current IUser instance. |