Exemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="configurationDbContext"></param>
 /// <param name="applicationDbContext"></param>
 /// <param name="roleManager"></param>
 /// <param name="logger"></param>
 /// <param name="permissionService"></param>
 public ClientsController(IClientsContext configurationDbContext,
                          IPermissionsContext applicationDbContext, RoleManager <GearRole> roleManager,
                          ILogger <ClientsController> logger, IPermissionService permissionService)
 {
     _configurationDbContext = configurationDbContext;
     _applicationDbContext   = applicationDbContext;
     _roleManager            = roleManager;
     _logger            = logger;
     _permissionService = permissionService;
 }
Exemplo n.º 2
0
 public RolesController(SignInManager <GearUser> signInManager, ILogger <RolesController> logger, IPermissionService permissionService, IClientsContext configurationDbContext, IIdentityContext applicationDbContext, RoleManager <GearRole> roleManager, IUserManager <GearUser> userManager, INotify <GearRole> notify, IPermissionsContext permissionsContext)
 {
     _signInManager         = signInManager;
     _logger                = logger;
     _permissionService     = permissionService;
     ConfigurationDbContext = configurationDbContext;
     _applicationDbContext  = applicationDbContext;
     _roleManager           = roleManager;
     _userManager           = userManager;
     _notify                = notify;
     _permissionsContext    = permissionsContext;
 }