コード例 #1
0
 public RoleAdminController(
     SiteManager siteManager,
     SiteUserManager<SiteUser> userManager,
     SiteRoleManager<SiteRole> roleManager,
     IOptions<UIOptions> uiOptionsAccessor,
     IOptions<SetupOptions> setupOptionsAccessor
     )
 {
     UserManager = userManager;
     RoleManager = roleManager;
     this.siteManager = siteManager;
     uiOptions = uiOptionsAccessor.Value;
     setupOptions = setupOptionsAccessor.Value;
 }
コード例 #2
0
 public RoleAdminController(
     SiteManager siteManager,
     SiteUserManager <SiteUser> userManager,
     SiteRoleManager <SiteRole> roleManager,
     IOptions <UIOptions> uiOptionsAccessor,
     IOptions <SetupOptions> setupOptionsAccessor
     )
 {
     UserManager      = userManager;
     RoleManager      = roleManager;
     this.siteManager = siteManager;
     uiOptions        = uiOptionsAccessor.Value;
     setupOptions     = setupOptionsAccessor.Value;
 }
コード例 #3
0
 public RoleAdminController(
     SiteManager siteManager,
     SiteUserManager<SiteUser> userManager,
     SiteRoleManager<SiteRole> roleManager,
     IStringLocalizer<CloudscribeCore> localizer,
     IOptions<UIOptions> uiOptionsAccessor,
     IOptions<SiteConfigOptions> setupOptionsAccessor
     )
 {
     UserManager = userManager;
     RoleManager = roleManager;
     this.siteManager = siteManager;
     uiOptions = uiOptionsAccessor.Value;
     setupOptions = setupOptionsAccessor.Value;
     sr = localizer;
 }
コード例 #4
0
 public RoleAdminController(
     SiteManager siteManager,
     SiteUserManager <SiteUser> userManager,
     SiteRoleManager <SiteRole> roleManager,
     IStringLocalizer <CloudscribeCore> localizer,
     IOptions <UIOptions> uiOptionsAccessor,
     IOptions <SiteConfigOptions> setupOptionsAccessor
     )
 {
     UserManager      = userManager;
     RoleManager      = roleManager;
     this.siteManager = siteManager;
     uiOptions        = uiOptionsAccessor.Value;
     setupOptions     = setupOptionsAccessor.Value;
     sr = localizer;
 }
コード例 #5
0
 public RoleAdminController(
     SiteManager siteManager,
     SiteUserManager <SiteUser> userManager,
     SiteRoleManager <SiteRole> roleManager,
     IStringLocalizer <CloudscribeCore> localizer,
     IOptions <UIOptions> uiOptionsAccessor,
     IOptions <SiteConfigOptions> setupOptionsAccessor,
     IEnumerable <IGuardNeededRoles> roleGuards
     )
 {
     _userManager  = userManager;
     _roleManager  = roleManager;
     _siteManager  = siteManager;
     _uiOptions    = uiOptionsAccessor.Value;
     _setupOptions = setupOptionsAccessor.Value;
     _sr           = localizer;
     _roleGuards   = roleGuards;
 }
コード例 #6
0
 public RoleAdminController(
     SiteManager siteManager,
     SiteUserManager <SiteUser> userManager,
     SiteRoleManager <SiteRole> roleManager,
     IAuthorizationService authorizationService,
     IStringLocalizer <CloudscribeCore> localizer,
     IOptions <UIOptions> uiOptionsAccessor,
     IOptions <SiteConfigOptions> setupOptionsAccessor,
     IEnumerable <IGuardNeededRoles> roleGuards
     )
 {
     UserManager          = userManager;
     RoleManager          = roleManager;
     SiteManager          = siteManager;
     UIOptions            = uiOptionsAccessor.Value;
     SetupOptions         = setupOptionsAccessor.Value;
     AuthorizationService = authorizationService;
     StringLocalizer      = localizer;
     RoleGuards           = roleGuards;
 }
コード例 #7
0
        public ProjectController(IProjectRepository repo,
                                 IMapper mapper,
                                 IProjectItemRepository itemrepo,
                                 ICompanyRepository companyrepo,
                                 IPropertyRepository propertyrepo,
                                 SiteUserManager <SiteUser> siteUserManager,
                                 SiteRoleManager <SiteRole> siteRoleMamager,
                                 IAppUserRoleRepository appUserRoleRepo,
                                 IAppRoleRepository appRoleRepo
                                 )

        {
            _repo            = repo;
            _itemrepo        = itemrepo;
            _companyrepo     = companyrepo;
            _propertyrepo    = propertyrepo;
            _siteRoleManager = siteRoleMamager;
            _mapper          = mapper;
            _siteUserManager = siteUserManager;
            _appUserRoleRepo = appUserRoleRepo;
            _appRoleRepo     = appRoleRepo;
        }