JXMovies/Core/JXCMS.Core/JXCMSMiddlewareExtensions.cs
2020-02-09 19:10:05 +08:00

18 lines
619 B
C#
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}
}
}