using Microsoft.AspNetCore.Builder;
namespace EntrustSettle.Extensions.Middlewares
{
public static class MiddlewareHelpers
{
///
/// 自定义授权中间件
///
///
///
public static IApplicationBuilder UseJwtTokenAuth(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// 请求响应中间件
///
///
///
public static IApplicationBuilder UseRequestResponseLogMiddle(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// SignalR中间件
///
///
///
public static IApplicationBuilder UseSignalRSendMiddle(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// 异常处理中间件
///
///
///
public static IApplicationBuilder UseExceptionHandlerMiddle(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// 用户访问中间件
///
///
///
public static IApplicationBuilder UseRecordAccessLogsMiddle(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// AppUser赋值中间件
/// 大简云的ids4返回的token里只有用户id,没有Name、公司名称等信息
///
///
///
public static IApplicationBuilder UseSetAppUserMiddleware(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
}
}