mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-05-12 00:28:05 +08:00
20 lines
534 B
C#
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>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|