using Microsoft.AspNetCore.Builder;
namespace Admin.Core.Extensions
{
public static class MiddlewareHelpers
{
///
/// 自定义授权中间件
///
///
///
public static IApplicationBuilder UseJwtTokenAuth(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// 请求响应中间件
///
///
///
public static IApplicationBuilder UseReuestResponseLog(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// SignalR中间件
///
///
///
public static IApplicationBuilder UseSignalRSendMildd(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// 异常处理中间件
///
///
///
public static IApplicationBuilder UseExceptionHandlerMidd(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// IP请求中间件
///
///
///
public static IApplicationBuilder UseIPLogMildd(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// 用户访问中间件
///
///
///
public static IApplicationBuilder UseRecordAccessLogsMildd(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
}
}