コード例 #1
0
        protected LevyAccountBalanceService(StatefulServiceContext context,
                                            IPaymentLogger logger,
                                            ILifetimeScope lifetimeScope,
                                            IProcessLevyAccountBalanceService processLevyAccountBalanceService,
                                            IConfigurationHelper configurationHelper) : base(context)
        {
            this.processLevyAccountBalanceService = processLevyAccountBalanceService ?? throw new ArgumentNullException(nameof(processLevyAccountBalanceService));
            this.logger        = logger ?? throw new ArgumentNullException(nameof(logger));
            this.lifetimeScope = lifetimeScope ?? throw new ArgumentNullException(nameof(lifetimeScope));
            this.processLevyAccountBalanceService = processLevyAccountBalanceService;
            var intervalInHours = double.Parse(configurationHelper.GetSetting("LevyAccountRefreshIntervalInHours"));

            refreshInterval = TimeSpan.FromHours(intervalInHours);
        }
 public ImportPageOfAccountsCommandHandler(IPaymentLogger paymentLogger, IProcessLevyAccountBalanceService levyAccountBalanceService)
 {
     this.paymentLogger             = paymentLogger ?? throw new ArgumentNullException(nameof(paymentLogger));
     this.levyAccountBalanceService = levyAccountBalanceService ?? throw new ArgumentNullException(nameof(levyAccountBalanceService));
 }