public GatewayStrategyBase(IBillingConfigurationService billingConfigurationService, ILogger logger, IOrderRepository orderRepository, IMemoryCache cache)
 {
     _billingConfigurationService = billingConfigurationService;
     _orderRepository             = orderRepository;
     _logger          = logger;
     _cache           = cache;
     _orderRepository = orderRepository;
 }
 public GatewayStrategyFactory(IBillingConfigurationService billingConfigurationService, ILogger <IGatewayStrategyFactory> logger, IOrderRepository orderRepository, IMemoryCache cache, HttpClient httpClient)
 {
     _billingConfigurationService = billingConfigurationService;
     _logger          = logger;
     _orderRepository = orderRepository;
     _httpClient      = httpClient;
     _cache           = cache;
 }
Exemple #3
0
 public OrderProcessingService(IUnitOfWork unitOfWork, IOrderRepository orderRepository, IBillingConfigurationService billingConfigurationService,
                               IGatewayStrategyFactory gatewayStrategyFactory, HttpClient httpClient, ILogger <IOrderProcessingService> logger)
 {
     _unitOfWork                  = unitOfWork;
     _orderRepository             = orderRepository;
     _billingConfigurationService = billingConfigurationService;
     _gatewayStrategyFactory      = gatewayStrategyFactory;
     _httpClient                  = httpClient;
     _logger = logger;
 }
Exemple #4
0
 public SEPAGatewayStrategy(IBillingConfigurationService billingConfigurationService, ILogger logger, IOrderRepository orderRepository, IMemoryCache cache) : base(billingConfigurationService, logger, orderRepository, cache)
 {
 }
 public GatewayStrategyBase(IBillingConfigurationService billingConfigurationService, ILogger logger, IOrderRepository orderRepository, IMemoryCache cache, HttpClient httpClient) : this(billingConfigurationService, logger, orderRepository, cache)
 {
     _httpClient = httpClient;
 }
 public BitcoinGatewayStrategy(IBillingConfigurationService billingConfigurationService, ILogger logger, IOrderRepository orderRepository, IMemoryCache cache, HttpClient httpClient) : base(billingConfigurationService, logger, orderRepository, cache, httpClient)
 {
     _externalCallDelaySeconds = Convert.ToInt32(_billingConfigurationService.GetGatewaySpecificConfig(Gateway.Bitcoin).ExternalCallWaitSeconds) * 1000;
 }
 public EthereumGatewayStrategy(IBillingConfigurationService billingConfigurationService, ILogger logger, IOrderRepository orderRepository, IMemoryCache cache, HttpClient httpClient) : base(billingConfigurationService, logger, orderRepository, cache, httpClient)
 {
     _wallet = new Wallet(Convert.ToString(_billingConfigurationService.GetGatewaySpecificConfig(Gateway.Ethereum).Mnemonics), String.Empty);
     _externalCallDelaySeconds = Convert.ToInt32(_billingConfigurationService.GetGatewaySpecificConfig(Gateway.Ethereum).ExternalCallWaitSeconds) * 1000;
 }