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