增加DI中间件;
后台增加远程保存图片 修复后台编辑管理组权限bug 更新CKEditor 到 4.10.0
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
|
||||
namespace COMCMS.Common
|
||||
{
|
||||
public static class Extensions
|
||||
{
|
||||
|
||||
public static IApplicationBuilder UseMyMVCDI(this IApplicationBuilder builder)
|
||||
{
|
||||
DI.ServiceProvider = builder.ApplicationServices;
|
||||
return builder;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 依赖注入
|
||||
/// </summary>
|
||||
public static class DI
|
||||
{
|
||||
public static IServiceProvider ServiceProvider
|
||||
{
|
||||
get;set;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user