master
This commit is contained in:
1 parent
f8c8e74f7c
commit
c253805122
5 files changed
+184
-7
No files matched your search
+37
@@ -0,0 +1,37 @@
|
||||
using CloudBuilder.Core.Application.Builders;
|
||||
using CloudBuilder.Core.Application.Packs;
|
||||
using CloudBuilder.Core.Policy;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
|
||||
namespace CloudBuilder.Master.Service.DependencyInjection
|
||||
{
|
||||
[PackLevel(100)]
|
||||
public class CloudBuilderMasterServicePack : CloudBuilderPack
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取 模块级别
|
||||
/// </summary>
|
||||
public override PackLevel Level => PackLevel.Business;
|
||||
|
||||
/// <summary>
|
||||
/// 获取 模块启动顺序,模块启动的顺序先按级别启动,级别内部再按此顺序启动
|
||||
/// </summary>
|
||||
public override int Order => 2;
|
||||
|
||||
/// <summary>
|
||||
/// 将ServiceMessageManager到依赖注入服务容器中
|
||||
/// </summary>
|
||||
/// <param name="services">依赖注入服务容器</param>
|
||||
/// <returns></returns>
|
||||
public override IServiceCollection AddServices(IServiceCollection services,CloudBuilderBuilder builder)
|
||||
{
|
||||
//services.TryAddScoped<ILocaleMessageManager, ServiceMessageManager>();
|
||||
//services.TryAddScoped<ISecurityMasterManager, SecurityMasterManager>();
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user