JXMovies/Core/JXCMS.Core/JXCMSMiddlewareExtensions.cs

18 lines
619 B
C#
Raw Permalink Normal View History

2020-02-09 19:10:05 +08:00
using Microsoft.AspNetCore.Builder;
namespace JXCMS.Core
{
public static class JXCMSMiddlewareExtensions
{
/// <summary>
/// 使用JXCMS中间件的扩展方法初始化数据库提供安装等
/// </summary>
/// <param name="builder"></param>
/// <param name="installPath">安装路径(第一次打开时使用)</param>
/// <returns></returns>
public static IApplicationBuilder UseJXCMS(this IApplicationBuilder builder, string installPath)
{
return builder.UseMiddleware<JXCMSMiddleware>(installPath);
}
}
}