Add project files.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// ***********************************************************************
|
||||
// <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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user