Files
2018-07-02 18:15:35 +08:00

18 lines
480 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AspNetCore.Builder;
namespace Lib.Core.MiddlewareExtension.Extension
{
public static class MiddlewareExtension
{
public static IApplicationBuilder UseMiddlewareExtension(this IApplicationBuilder app, IExceptionHandler exceptionHandler)
{
app.UseMiddleware<ExceptionHandlingMiddleware>(exceptionHandler);
return app;
}
}
}