コード例 #1
0
ファイル: RoleManager.cs プロジェクト: baomen/bmmf
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="configuration">配置实例</param>
 /// <param name="serviceProvider">数据提供程序</param>
 public RoleManager(IConfiguration configuration, IServiceProvider serviceProvider) : base(configuration, serviceProvider)
 {
     roleModuleManager     = serviceProvider.GetRequiredService <RoleModuleManager>();
     merchantManager       = serviceProvider.GetRequiredService <IMerchantManager>();
     userRoleManager       = serviceProvider.GetRequiredService <UserRoleManager>();
     operateHistoryManager = serviceProvider.GetRequiredService <IOperateHistoryManager>();
     moduleManager         = serviceProvider.GetRequiredService <System.BusinessLogic.IModuleManager>();
 }
コード例 #2
0
ファイル: UserManager.cs プロジェクト: baomen/bmmf
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="configuration">配置实例</param>
 /// <param name="serviceProvider">服务提供程序</param>
 public UserManager(IConfiguration configuration, IServiceProvider serviceProvider) : base(configuration, serviceProvider)
 {
     roleManager           = serviceProvider.GetRequiredService <IRoleManager>();
     parameterManager      = serviceProvider.GetRequiredService <IParameterManager>();
     operateHistoryManager = serviceProvider.GetRequiredService <IOperateHistoryManager>();
     userRoleManager       = serviceProvider.GetRequiredService <UserRoleManager>();
     userDepartmentManager = serviceProvider.GetRequiredService <UserDepartmentManager>();
     userTokenManager      = serviceProvider.GetRequiredService <UserTokenManager>();
 }