public AccountController( UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IEmailSender emailSender, ISmsSender smsSender, ILoggerFactory loggerFactory, IInviteService inviteService, ISuperAdminService superAdminService, IConfiguration configuration, IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions, IHttpContextAccessor httpContextAccessor, IUserClaimsPrincipalFactory <AppUser> userClaimsPrincipalFactory, IAntiforgery antiforgery) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _smsSender = smsSender; _logger = loggerFactory.CreateLogger <AccountController>(); _inviteService = inviteService; _superAdminService = superAdminService; _configuration = configuration; _jwtFactory = jwtFactory; _jwtOptions = jwtOptions.Value; _caller = httpContextAccessor.HttpContext.User; _userClaimsPrincipalFactory = userClaimsPrincipalFactory; _antiforgery = antiforgery; if (_configuration["InviteOnly"] == "true") { _InviteOnly = true; } }
/// <summary> /// Initializes a new instance of the <see cref="GroupsController" /> class. /// </summary> /// <param name="repositoryFactory">The repository factory.</param> /// <param name="validatorLocator">The validator locator.</param> /// <param name="eventService">The event service.</param> /// <param name="superAdminService"></param> /// <param name="loggerFactory">The logger factory.</param> public GroupsController( IRepositoryFactory repositoryFactory, IValidatorLocator validatorLocator, IEventService eventService, ISuperAdminService superAdminService, ILoggerFactory loggerFactory) { _groupRepositoryAsyncLazy = new AsyncLazy <IRepository <Group> >(() => repositoryFactory.CreateRepositoryAsync <Group>()); _userRepositoryAsyncLazy = new AsyncLazy <IRepository <User> >(() => repositoryFactory.CreateRepositoryAsync <User>()); _validatorLocator = validatorLocator; _eventService = eventService; _superAdminService = superAdminService; _logger = loggerFactory.GetLogger(this); }
/// <summary> /// Initializes a new instance of the <see cref="SuperAdminController"/> class. /// </summary> /// <param name="serviceParam">The service parameter.</param> public SuperAdminController(ISuperAdminService superAdminServiceParam) { _superAdminService = superAdminServiceParam; }
public ItemSecurityService(ISuperAdminService superAdminService) { _superAdminService = superAdminService; }
public SuperAdminController(ISuperAdminService superAdminService, IWebHostEnvironment env, IAuthService authService) { this._superAdminService = superAdminService; this._env = env; this._authService = authService; }
public SuperAdminController(ISuperAdminService SuperAdminService, ILogger <AdministratorController> log) { this.SuperAdminService = SuperAdminService; this._log = log; }