Ejemplo n.º 1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="configuration">配置实例</param>
 /// <param name="serviceProvider">服务提供程序</param>
 public UserManager(IConfiguration configuration, IServiceProvider serviceProvider) : base(configuration)
 {
     this.serviceProvider  = serviceProvider;
     operateHistoryManager = serviceProvider.GetRequiredService <IOperateHistoryManager>();
     userRoleManager       = serviceProvider.GetRequiredService <UserRoleManager>();
     userTokenManager      = serviceProvider.GetRequiredService <UserTokenManager>();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="configuration">配置实例</param>
 /// <param name="serviceProvider">数据提供程序</param>
 public RoleManager(IConfiguration configuration, IServiceProvider serviceProvider) : base(configuration)
 {
     this.serviceProvider  = serviceProvider;
     roleModuleManager     = serviceProvider.GetRequiredService <RoleModuleManager>();
     userRoleManager       = serviceProvider.GetRequiredService <UserRoleManager>();
     operateHistoryManager = serviceProvider.GetRequiredService <IOperateHistoryManager>();
     moduleManager         = serviceProvider.GetRequiredService <IModuleManager>();
 }