Exemplo n.º 1
0
 public UserSharedService(
     UserManager <User> userManager,
     ISharedResources localizer)
 {
     this.userManager = userManager;
     this.localizer   = localizer;
 }
Exemplo n.º 2
0
 public UsersController(
     IUserService userService,
     IUserSession currentUser,
     ISharedResources localizer) : base(currentUser)
 {
     this.userService = userService;
     this.localizer   = localizer;
 }
Exemplo n.º 3
0
 public MailjetService(
     IOptions <MailjetApiSettings> mailjetApiSettings,
     ILogger <MailjetService> logger,
     ISharedResources localizer)
 {
     this.logger             = logger;
     this.localizer          = localizer;
     this.mailjetApiSettings = mailjetApiSettings.Value;
 }
 public LoginMiddleware(ILoginRepository loginRepository,
                        IEnvironmentVariable environmentVariable,
                        IError error,
                        ISharedResources sharedResources)
 {
     this.loginRepository     = loginRepository;
     this.environmentVariable = environmentVariable;
     this.error           = error;
     this.sharedResources = sharedResources;
 }
Exemplo n.º 5
0
        public TokenService(
            AppDbContext context,
            UserManager <User> userManager,
            IUserSession userSession,
            IOptions <TokenSettings> tokenSettings,
            ISharedResources localizer)
        {
            this.context       = context;
            this.userManager   = userManager;
            this.userSession   = userSession;
            this.tokenSettings = tokenSettings.Value;
            this.localizer     = localizer;

            this.ThrowIfInvalidSettings(this.tokenSettings);
        }
Exemplo n.º 6
0
 public UserAccountService(
     AppDbContext context,
     UserManager <User> userManager,
     LinkGenerator linkGenerator,
     IUserSharedService userSharedService,
     IMailjetService mailjetService,
     IHttpContextAccessor httpContextAccessor,
     ISharedResources localizer)
 {
     this.context             = context;
     this.userManager         = userManager;
     this.linkGenerator       = linkGenerator;
     this.userSharedService   = userSharedService;
     this.mailjetService      = mailjetService;
     this.httpContextAccessor = httpContextAccessor;
     this.localizer           = localizer;
 }
Exemplo n.º 7
0
 public UserService(
     AppDbContext context,
     UserManager <User> userManager,
     RoleManager <Role> roleManager,
     IMailjetService mailjetService,
     IUrlHelper urlHelper,
     ISharedResources localizer,
     IMapper mapper)
 {
     this.context        = context;
     this.userManager    = userManager;
     this.roleManager    = roleManager;
     this.mailjetService = mailjetService;
     this.urlHelper      = urlHelper;
     this.localizer      = localizer;
     this.mapper         = mapper;
 }
 public ClientMiddleware(IClientRepository clientRepository, IError error, ISharedResources sharedResources)
 {
     this.clientRepository = clientRepository;
     this.error            = error;
     this.sharedResources  = sharedResources;
 }