Class ApplicationBuilderExtensions
- Assembly
- Cuemon.Extensions.AspNetCore.dll
Extension methods for the Microsoft.AspNetCore.Builder.IApplicationBuilder interface.
public static class ApplicationBuilderExtensions
- Inheritance
-
ApplicationBuilderExtensions
Methods
UseFaultDescriptorExceptionHandler(IApplicationBuilder)
Adds a middleware to the pipeline that will catch exceptions, log them, and re-execute the request in an alternate pipeline. The request will not be re-executed if the response has already started.
public static IApplicationBuilder UseFaultDescriptorExceptionHandler(this IApplicationBuilder builder)
Parameters
builder
IApplicationBuilderThe type that provides the mechanisms to configure an application’s request pipeline.
Returns
- IApplicationBuilder
A reference to this instance after the operation has completed.
Remarks
Extends the existing Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware to include features similar to those provided by Cuemon.AspNetCore.Mvc.Filters.Diagnostics.FaultDescriptorFilter, except:
- Unable to interact with controller applied attributes (outside scope; part of MVC context)
- Unable to mark an exception as handled (outside scope; part of MVC context)
UseServerTiming(IApplicationBuilder)
Adds a Server-Timing HTTP header to the Microsoft.AspNetCore.Builder.IApplicationBuilder request execution pipeline.
public static IApplicationBuilder UseServerTiming(this IApplicationBuilder builder)
Parameters
builder
IApplicationBuilderThe type that provides the mechanisms to configure an application’s request pipeline.
Returns
- IApplicationBuilder
A reference to this instance after the operation has completed.