20 lines
508 B
C#
20 lines
508 B
C#
using LFlow.Middleware.Register;
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
namespace LFlow.Middleware
|
|
{
|
|
public static class MiddlewareExtensions
|
|
{
|
|
/// <summary>
|
|
/// Use LFlow Middleware
|
|
/// 配置中间件
|
|
/// </summary>
|
|
/// <param name="app"></param>
|
|
public static async void UseLFlowMiddleware(this IApplicationBuilder app)
|
|
{
|
|
app.BuildMiddlewareServiceProvider();
|
|
await MiddlewareRegister.Handle(app);
|
|
}
|
|
}
|
|
}
|