コード例 #1
0
        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;
            }
        }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
ファイル: ItemSecurityService.cs プロジェクト: mparaz/banico
 public ItemSecurityService(ISuperAdminService superAdminService)
 {
     _superAdminService = superAdminService;
 }
コード例 #5
0
 public SuperAdminController(ISuperAdminService superAdminService, IWebHostEnvironment env, IAuthService authService)
 {
     this._superAdminService = superAdminService;
     this._env         = env;
     this._authService = authService;
 }
コード例 #6
0
 public SuperAdminController(ISuperAdminService SuperAdminService, ILogger <AdministratorController> log)
 {
     this.SuperAdminService = SuperAdminService;
     this._log = log;
 }