You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
458 B
C#
18 lines
458 B
C#
using Microsoft.AspNetCore.Builder;
|
|
|
|
namespace Admin.Core.Extensions
|
|
{
|
|
public static class MiddlewareHelpers
|
|
{
|
|
/// <summary>
|
|
/// 异常处理中间件
|
|
/// </summary>
|
|
/// <param name="app"></param>
|
|
/// <returns></returns>
|
|
public static IApplicationBuilder UseExceptionHandlerMidd(this IApplicationBuilder app)
|
|
{
|
|
return app.UseMiddleware<ExceptionHandlerMidd>();
|
|
}
|
|
}
|
|
}
|