コード例 #1
0
 public LoginController
 (
     IConfiguration configuration,
     IStringLocalizer <LoginController> localizer,
     IHostingEnvironment hostEnv,
     IUserService usrSvc,
     IMenuBuilderService mbSvc
 )
 {
     _config             = configuration;
     _localizer          = localizer;
     _hostingEnv         = hostEnv;
     _userService        = usrSvc;
     _menuBuilderService = mbSvc;
 }
コード例 #2
0
 public RoleManagementService(
     ICacheProvider cacheProvider,
     IMenuBuilderService menuBuilderService,
     IMapper mapper,
     IUnitOfWork <Guid, RoleManagementDbContext> unitOfWork,
     ILogger <RoleManagementService> logger)
 {
     _cacheProvider           = cacheProvider;
     _unitOfWork              = unitOfWork;
     _menuBuilderService      = menuBuilderService;
     _mapper                  = mapper;
     _roleRepository          = unitOfWork.GetRepository <Role>();
     _roleMenuRepository      = unitOfWork.GetRepository <RoleMenu>();
     _operationRepository     = unitOfWork.GetRepository <Operation>();
     _menuRepository          = unitOfWork.GetRepository <Menu>();
     _menuTypeRepository      = unitOfWork.GetRepository <MenuType>();
     _roleOperationRepository = unitOfWork.GetRepository <RoleOperation>();
 }
コード例 #3
0
 /// <summary>
 /// Initialize
 /// </summary>
 /// <param name="menuservice"></param>
 public ApplicationController(IMenuBuilderService menuservice)
 {
     _menuService = menuservice;
 }
コード例 #4
0
 public Sidemenu(IMenuBuilderService menuBuilderService, IHttpContextAccessor httpContextAccessor)
 {
     _menuBuilderService  = menuBuilderService;
     _httpContextAccessor = httpContextAccessor;
 }
コード例 #5
0
 public MenuController(IMenuBuilderService menuBuilderService)
 {
     this.menuBuilderService = menuBuilderService;
 }