21 lines
675 B
C#
21 lines
675 B
C#
// ***********************************************************************
|
|
// <copyright file="HttpLoggingMiddlewareExtension.cs">
|
|
// Heath
|
|
// </copyright>
|
|
// ***********************************************************************
|
|
|
|
using Lib.Common.LoggingAPI.Common.Settings;
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
namespace Lib.Common.LoggingAPI.Service.Middleware.HttpException
|
|
{
|
|
public static class HttpErrorMiddlewareExtension
|
|
{
|
|
public static IApplicationBuilder UseHttpExceptionHandler(this IApplicationBuilder builder, ServiceSettings settings)
|
|
{
|
|
return builder.UseMiddleware<HttpErrorMiddleware>(settings);
|
|
}
|
|
}
|
|
}
|
|
|