public AuthorizationService(IDbContextFactory contextFactory)
 {
     /*Protector = new KeyRingBasedDataProtector(
      *  logger: _logger,
      *  keyRingProvider: _keyRingProvider,
      *  originalPurposes: null,
      *  newPurpose: purpose); dataProtectionProvider.CreateProtector("DataProtectorTokenProvider");*/
     _eJContext = contextFactory.CreateReadonlyDbContext <EJContext>();
     _tokenProviders[Tokens.EmailConfirmationTokenProvider] = new UserTwoFactorTokenProvider();
 }
Esempio n. 2
0
 public SheduleService(IMapper mapper,
                       IDbContextFactory contextFactory,
                       IEMailService eMailService,
                       IConverterService converterService, IUserService userService)
 {
     _eJContext        = contextFactory.CreateReadonlyDbContext <EJContext>();
     _eMailService     = eMailService;
     _converterService = converterService;
     _userService      = userService;
     Mapper            = mapper;
 }
Esempio n. 3
0
 public BaseUserService(
     IServiceCache cache,
     IDbContextFactory contextFactory,
     IMapper mapper,
     IHttpContextAccessor httpContextAccessor)
 {
     Cache               = cache;
     _eJContext          = contextFactory.CreateReadonlyDbContext <EJContext>();
     Mapper              = mapper;
     HttpContextAccessor = httpContextAccessor;
 }
 public UserService(
     IServiceCache cache,
     IEMailService eMailService,
     IDbContextFactory contextFactory,
     IMapper mapper, IHttpContextAccessor httpContext,
     IAuthorizationService authorizationService, IConfiguration configuration)
     : base(cache, contextFactory, mapper, httpContext)
 {
     EMailService         = eMailService;
     AuthorizationService = authorizationService;
     SaltConfiguration    = configuration.GetSection("Salt").Get <SaltConfiguration>();
     _eJContext           = contextFactory.CreateReadonlyDbContext <EJContext>();
 }
Esempio n. 5
0
 public ConverterService(IDbContextFactory contextFactory)
 {
     _eJContext = contextFactory.CreateReadonlyDbContext <EJContext>();
 }
 public GroupService(IMapper mapper,
                     IDbContextFactory contextFactory)
 {
     Mapper     = mapper;
     _eJContext = contextFactory.CreateReadonlyDbContext <EJContext>();
 }