using Microsoft.AspNetCore.Builder;
namespace Znyc.CloudCar.Middlewares
{
///
/// 中间件
///
public static class MiddlewareHelpers
{
///
/// 请求响应中间件
///
///
///
public static IApplicationBuilder UseRequestResponseLog(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// 异常处理中间件(后端模式)
///
///
///
public static IApplicationBuilder UseExceptionHandlerMiddForAdmin(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// 异常处理中间件(客户端)
///
///
///
public static IApplicationBuilder UseExceptionHandlerMiddForClent(this IApplicationBuilder app)
{
return app.UseMiddleware();
}
///
/// SignalR中间件
///
///
///
public static IApplicationBuilder UseSignalRSendMildd(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();
}
}
}