Beispiel #1
0
        public TimestampService(
            ILogger logger,
            ITimestampRepository timestampRepository,
            IUserRepository userRepository,
            IPricePlanRepository pricePlanRepository,
            IEthHelper ethHelper,
            ITimestampQueueService timestampQueueService,
            IWeb3 basicWeb3,
            IWeb3 premiumWeb3)
        {
            Guard.Argument(logger, nameof(logger)).NotNull();
            Guard.Argument(timestampRepository, nameof(timestampRepository)).NotNull();
            Guard.Argument(userRepository, nameof(userRepository)).NotNull();
            Guard.Argument(pricePlanRepository, nameof(pricePlanRepository)).NotNull();
            Guard.Argument(ethHelper, nameof(ethHelper)).NotNull();
            Guard.Argument(timestampQueueService, nameof(timestampQueueService)).NotNull();
            Guard.Argument(basicWeb3, nameof(basicWeb3)).NotNull();
            Guard.Argument(premiumWeb3, nameof(premiumWeb3)).NotNull();

            _logger = logger;
            _timestampRepository   = timestampRepository;
            _userRepository        = userRepository;
            _pricePlanRepository   = pricePlanRepository;
            _ethHelper             = ethHelper;
            _timestampQueueService = timestampQueueService;

            _basicWeb3   = basicWeb3;
            _premiumWeb3 = premiumWeb3;
        }
Beispiel #2
0
        public TimestampProcessingTrigger(
            ILogger logger,
            ITimestampQueueService timestampQueueService,
            ITimestampRepository timestampRepository,
            VeryfyTransactionSettings settings)
        {
            Guard.Argument(logger, nameof(logger)).NotNull();
            Guard.Argument(timestampQueueService, nameof(timestampQueueService)).NotNull();
            Guard.Argument(timestampRepository, nameof(timestampRepository)).NotNull();
            Guard.Argument(settings, nameof(settings)).NotNull();

            _logger = logger;
            _timestampQueueService = timestampQueueService;
            _timestampRepository   = timestampRepository;
            _settings = settings;
        }