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(); }
public SheduleService(IMapper mapper, IDbContextFactory contextFactory, IEMailService eMailService, IConverterService converterService, IUserService userService) { _eJContext = contextFactory.CreateReadonlyDbContext <EJContext>(); _eMailService = eMailService; _converterService = converterService; _userService = userService; Mapper = mapper; }
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>(); }
public ConverterService(IDbContextFactory contextFactory) { _eJContext = contextFactory.CreateReadonlyDbContext <EJContext>(); }
public GroupService(IMapper mapper, IDbContextFactory contextFactory) { Mapper = mapper; _eJContext = contextFactory.CreateReadonlyDbContext <EJContext>(); }