OpenAuth.Net/Infrastructure/Middleware/IApplicationBuilderExtension.cs
wangsl 781097f325 优化:
1.增加全站api 文本日志记录,后期可扩展日志记录到ES等搜索器中
2.禁用.net自动模态验证 , 采用系统全局异常捕获机制,增加友好提示
2021-05-08 16:29:11 +08:00

20 lines
534 B
C#

using Microsoft.AspNetCore.Builder;
namespace Infrastructure.Middleware
{
/// <summary>
///
/// </summary>
public static class ApplicationBuilderExtension
{
/// <summary>
/// 注入日志中间件
/// </summary>
/// <param name="builder"></param>
/// <returns></returns>
public static IApplicationBuilder UseLogMiddleware(this IApplicationBuilder builder)
{
return builder.UseMiddleware<RequestResponseLoggingMiddleware>();
}
}
}