示例#1
0
 public CryptoController()
 {
     // should be refactored after DI functionality added
     this.uaCryptoRepository =
         new UaCryptoVerificationRepository();
         //new DpaVerificationRepository();
 }
 //to inject the account servive? in order to get the random func?
 public VerificationService(
     //IAccountService accountService,
     IVerificationRepository verificationRepository)
 {
     //_accountService = accountService;
     _verificationRepository = verificationRepository;
 }
示例#3
0
 public UnitOfWork(BlogContext context,
                   IPostRepository posts,
                   IPostContentRepository postContents,
                   ICommentRepository comments,
                   ITagRepository tags,
                   IRatingRepository ratings,
                   IVerificationRepository authorVerifications,
                   IVerificationStatusRepository verificationStatuses,
                   IProfileRepository userProfiles,
                   UserManager <User> userManager,
                   RoleManager <IdentityRole> roleManager,
                   SignInManager <User> signInManager)
 {
     _context             = context;
     Posts                = posts;
     PostContents         = postContents;
     Comments             = comments;
     Tags                 = tags;
     Ratings              = ratings;
     AuthorVerifications  = authorVerifications;
     VerificationStatuses = verificationStatuses;
     UserProfiles         = userProfiles;
     UserManager          = userManager;
     RoleManager          = roleManager;
     SignInManager        = signInManager;
 }
示例#4
0
 public CryptoController()
 {
     // should be refactored after DI functionality added
     this.uaCryptoRepository =
         new UaCryptoVerificationRepository();
     //new DpaVerificationRepository();
 }
示例#5
0
 public AccountService(IAccountRepository accountRepository,
                       IVerificationRepository verificationRepository,
                       IVerificationService verificationService)
 {
     _accountRepository      = accountRepository;
     _verificationRepository = verificationRepository;
     _verificationService    = verificationService;
 }
示例#6
0
 public VerificationService(
     ILogger <VerificationService> logger,
     IConfiguration config,
     IVerificationRepository validationRepository,
     HttpClient client) : base(client, config, "Services:Validation")
 {
     _logger = logger;
     _validationRepository = validationRepository;
 }
示例#7
0
 public VerificationAppService(
     IVerificationRepository verificationRepository,
     IVerificationService verificationService,
     IDbUnitOfWork dbUnitOfWork,
     IEventBus eventBus) : base(dbUnitOfWork)
 {
     _verificationRepository = verificationRepository;
     _verificationService    = verificationService;
     _eventBus = eventBus;
 }
        public Google(
            AndroidPublisherService googleService,
            IVerificationRepository verificationRepository,
            IConfiguration configuration)
        {
            _googleService          = googleService;
            _verificationRepository = verificationRepository;

            _graceDays = int.TryParse(configuration["GraceDays"], out var val)
                ? val : 0;
        }
示例#9
0
 public MessageAppService(IDbUnitOfWork dbUnitOfWork,
                          IVerificationRepository verificationRepo,
                          IVerificationService verificationService,
                          IEventBus eventBus,
                          ITest test) : base(dbUnitOfWork)
 {
     _verificationRepository = verificationRepo;
     _verificationService    = verificationService;
     _eventBus = eventBus;
     _test     = test;
 }
示例#10
0
 public VerificationAppService(
     IVerificationRepository verificationRepository,
     IVerificationService verificationService,
     IDbUnitOfWork dbUnitOfWork,
     IEventBus eventBus,
     ITest test) : base(dbUnitOfWork)
 {
     _verificationRepository = verificationRepository;
     _verificationService    = verificationService;
     _eventBus = eventBus;// IocProvider.GetService<IEventBus>();
     _test     = test;
 }
示例#11
0
 public VerificationAppService(
     IVerificationRepository verificationRepository,
     IVerificationService verificationService,
     IDbUnitOfWork dbUnitOfWork,
     IEventBus eventBus,
     ISmsProxy smsProxy)
 {
     _verificationRepository = verificationRepository;
     _verificationService    = verificationService;
     _dbUnitOfWork           = dbUnitOfWork;
     _eventBus = eventBus;
     _smsProxy = smsProxy;
 }
示例#12
0
        public Apple(
            IHttpClientFactory httpClientFactory,
            IConfiguration configuration,
            IVerificationRepository verificationRepository)
        {
            _httpClient             = httpClientFactory.CreateClient();
            _configuration          = configuration;
            _verificationRepository = verificationRepository;

            _serializer = new JsonSerializer()
            {
                ContractResolver = new DefaultContractResolver()
                {
                    NamingStrategy = new SnakeCaseNamingStrategy()
                }
            };

            _graceDays = int.TryParse(_configuration["GraceDays"], out var val)
                ? val : 0;
        }
 public PhoneVerifyController(IVerificationRepository verificationRepository)
 {
     this._number = this.GenerateCode();
     this._verificationRepository = verificationRepository;
 }
 public VerifyRegistrationController(IVerificationRepository verificationRepository)
 {
     _verificationRepository = verificationRepository;
 }
示例#15
0
 public CryptoController(IVerificationRepository uaCryptoRepository)
 {
     this.uaCryptoRepository = uaCryptoRepository;
 }
 public ForgotPasswordController(IUserRepository userRepository, IOptions <AppSettings> appSettings, IVerificationRepository verificationRepository)
 {
     _userRepository         = userRepository;
     _verificationRepository = verificationRepository;
     _appSettings            = appSettings.Value;
 }
示例#17
0
 public VerificationSentEventHandler(IVerificationRepository verificationRepository)
 {
     verificationRepository = _verificationRepository;
 }
示例#18
0
 public VerificationSentEventHandler(IVerificationRepository verificationRepository, IEventBus bus) : base(bus, false)
 {
     _verificationRepository = verificationRepository;
     _eventBus = bus;
 }
 public UserAuthorizationHandler(IUserAccountRepository accounts, IVerificationRepository verificationCodes)
 {
     _accounts = accounts;
     _verificationCodes = verificationCodes;
 }
 public VerificationService(
     //IConfigurationRoot  configurationRoot,
     IVerificationRepository verificationRepository)
 {
     _verificationRepository = verificationRepository;
 }
 public ResetPasswordController(IUserRepository userRepository, IVerificationRepository verificationRepository)
 {
     _userRepository         = userRepository;
     _verificationRepository = verificationRepository;
 }
示例#22
0
 public PortalController(IUserRepository userRepository, IVerificationRepository verificationRepository)
 {
     _userRepository         = userRepository;
     _verificationRepository = verificationRepository;
 }
 public RegistrationController(IUserRepository userRepository, IVerificationRepository verificationRepository, IOptions <AppSettings> appSettings)
 {
     _userRepository         = userRepository;
     _verificationRepository = verificationRepository;
     _appSettings            = appSettings.Value;
 }
示例#24
0
 public VerifyResetPasswordController(IVerificationRepository verificationRepository)
 {
     _verificationRepository = verificationRepository;
 }
示例#25
0
 public CryptoController(IVerificationRepository uaCryptoRepository)
 {
     this.uaCryptoRepository = uaCryptoRepository;
 }
示例#26
0
 public VerificationCodeHandler(IVerificationRepository repository)
 {
     _repository = repository;
 }