public HttpFacade( IPushLogger logger, HttpClient client, FaultTolerantExecutor executor) { _logger = logger; _client = client; _executor = executor; }
public PayoutApi( IPushLogger logger, ShopifyHttpContext httpClient) { _logger = logger; _httpClient = httpClient; }
public AcumaticaOrderPut( SyncOrderRepository syncOrderRepository, SyncInventoryRepository syncInventoryRepository, SalesOrderClient salesOrderClient, AcumaticaOrderRepository acumaticaOrderRepository, AcumaticaCustomerPut acumaticaCustomerSync, AcumaticaOrderPaymentPut acumaticaOrderPaymentPut, PendingActionService pendingActionService, JobMonitoringService jobMonitoringService, AcumaticaTimeZoneService acumaticaTimeZoneService, AcumaticaHttpContext acumaticaHttpContext, ShopifyJsonService shopifyJsonService, SettingsRepository settingsRepository, ExecutionLogService logRepository, IPushLogger systemLogger) { _syncOrderRepository = syncOrderRepository; _syncInventoryRepository = syncInventoryRepository; _salesOrderClient = salesOrderClient; _acumaticaOrderRepository = acumaticaOrderRepository; _acumaticaCustomerSync = acumaticaCustomerSync; _acumaticaOrderPaymentPut = acumaticaOrderPaymentPut; _acumaticaTimeZoneService = acumaticaTimeZoneService; _pendingActionService = pendingActionService; _jobMonitoringService = jobMonitoringService; _shopifyJsonService = shopifyJsonService; _settingsRepository = settingsRepository; _logService = logRepository; _systemLogger = systemLogger; _acumaticaHttpContext = acumaticaHttpContext; }
public static void Process( string key, int timeBetweenCallsMs = 0, IPushLogger logger = null) { if (logger == null) { logger = new ConsoleAndDebugLogger(); } if (LastExecutionTime.ContainsKey(key)) { var lastExecutionTime = LastExecutionTime[key]; var timeSinceLastExecution = DateTime.UtcNow - lastExecutionTime; var throttlingDelay = new TimeSpan(0, 0, 0, 0, timeBetweenCallsMs); if (timeSinceLastExecution < throttlingDelay) { var remainingTimeToDelay = throttlingDelay - timeSinceLastExecution; logger.Debug($"Intentional delay before next call: {remainingTimeToDelay} ms"); Thread.Sleep(remainingTimeToDelay); } } LastExecutionTime[key] = DateTime.UtcNow; }
public ShopifyPayoutPullWorker( PayoutPersistRepository persistRepository, PayoutApi payoutRepository, IPushLogger logger) { _persistRepository = persistRepository; _payoutRepository = payoutRepository; _logger = logger; }
public BankImportService( IPushLogger logger, ShopifyPayoutRepository persistRepository, Screen screen) { _logger = logger; _persistRepository = persistRepository; _screen = screen; }
public AcumaticaPayoutPushWorkerScreen( IPushLogger logger, PayoutPersistRepository persistRepository, Screen screen) { _logger = logger; _persistRepository = persistRepository; _screen = screen; }
public ShopifyDataFeeder( InstanceContext connection, OrderApi orderApi, CustomerApi customerApi, IPushLogger logger) { _connection = connection; _orderApi = orderApi; _customerApi = customerApi; _logger = logger; }
public ProvisioningService( MasterRepository masterRepository, PushIdentityDbContext dbContext, IdentityUserManager userManager, IdentityRoleManager roleManager, IPushLogger logger) { _masterRepository = masterRepository; _dbContext = dbContext; _userManager = userManager; _roleManager = roleManager; _logger = logger; }
public ShopifyPayoutPullWorker( CredentialsRepository connectionRepository, ShopifyBatchRepository shopifyBatchRepository, ShopifyPayoutRepository persistRepository, SettingsRepository settingsRepository, PayoutApi payoutApi, IPushLogger logger) { _connectionRepository = connectionRepository; _shopifyBatchRepository = shopifyBatchRepository; _persistRepository = persistRepository; _settingsRepository = settingsRepository; _payoutApi = payoutApi; _logger = logger; }
public JobRunner( ProcessDirector processDirector, InstanceContext instanceContext, JobMonitoringService jobMonitoringService, ExecutionLogService executionLogService, OneTimeJobScheduler oneTimeJobScheduler, IPushLogger logger) { _processDirector = processDirector; _instanceContext = instanceContext; _jobMonitoringService = jobMonitoringService; _executionLogService = executionLogService; _oneTimeJobScheduler = oneTimeJobScheduler; _logger = logger; }
public ShopifyInventoryPut( InventoryApi inventoryApi, ProductApi productApi, ShopifyInventoryRepository inventoryRepository, SyncInventoryRepository syncInventoryRepository, SettingsRepository settingsRepository, ExecutionLogService executionLogService, IPushLogger logger, AcumaticaJsonService acumaticaJsonService) { _inventoryApi = inventoryApi; _productApi = productApi; _inventoryRepository = inventoryRepository; _syncInventoryRepository = syncInventoryRepository; _settingsRepository = settingsRepository; _executionLogService = executionLogService; _logger = logger; _acumaticaJsonService = acumaticaJsonService; }
public AcumaticaManager( AcumaticaHttpContext acumaticaHttpContext, AcumaticaReferenceGet acumaticaReferencePull, AcumaticaCustomerGet acumaticaCustomerPull, AcumaticaOrderGet acumaticaOrderPull, AcumaticaWarehouseGet acumaticaWarehousePull, AcumaticaInventoryGet acumaticaInventoryPull, StateRepository stateRepository, ExecutionLogService executionLogService, IPushLogger logger) { _acumaticaHttpContext = acumaticaHttpContext; _acumaticaCustomerPull = acumaticaCustomerPull; _acumaticaOrderPull = acumaticaOrderPull; _acumaticaWarehousePull = acumaticaWarehousePull; _acumaticaInventoryPull = acumaticaInventoryPull; _executionLogService = executionLogService; _acumaticaReferencePull = acumaticaReferencePull; }
public AcumaticaRefundPut( SyncOrderRepository syncOrderRepository, SyncInventoryRepository syncRepository, SalesOrderClient salesOrderClient, SettingsRepository settingsRepository, ExecutionLogService logService, AcumaticaOrderGet acumaticaOrderPull, AcumaticaOrderPut acumaticaOrderSync, IPushLogger logger) { _syncOrderRepository = syncOrderRepository; _salesOrderClient = salesOrderClient; _settingsRepository = settingsRepository; _logService = logService; _acumaticaOrderPull = acumaticaOrderPull; _acumaticaOrderSync = acumaticaOrderSync; _syncRepository = syncRepository; _logger = logger; }
public ShopifyFulfillmentPut( ShopifyOrderRepository shopifyOrderRepository, SyncOrderRepository syncOrderRepository, SyncInventoryRepository syncInventoryRepository, FulfillmentApi fulfillmentApi, ExecutionLogService logService, FulfillmentStatusService fulfillmentStatusService, IPushLogger pushLogger, JobMonitoringService jobMonitoringService, ShopifyJsonService shopifyJsonService) { _shopifyOrderRepository = shopifyOrderRepository; _syncOrderRepository = syncOrderRepository; _syncInventoryRepository = syncInventoryRepository; _fulfillmentApi = fulfillmentApi; _logService = logService; _fulfillmentStatusService = fulfillmentStatusService; _pushLogger = pushLogger; _jobMonitoringService = jobMonitoringService; _shopifyJsonService = shopifyJsonService; }
public ShopifyInventoryGet( IPushLogger logger, ProductApi productApi, InventoryApi inventoryApi, EventApi eventApi, ShopifyInventoryRepository inventoryRepository, JobMonitoringService jobMonitoringService, ShopifyBatchRepository batchRepository, ExecutionLogService executionLogService, ShopifyJsonService shopifyJsonService) { _productApi = productApi; _inventoryApi = inventoryApi; _eventApi = eventApi; _inventoryRepository = inventoryRepository; _jobMonitoringService = jobMonitoringService; _batchRepository = batchRepository; _executionLogService = executionLogService; _shopifyJsonService = shopifyJsonService; _logger = logger; }
public ShopifyManager( ShopifyReferenceGet shopifyReferenceGet, ShopifyInventoryGet shopifyInventoryPull, ShopifyCustomerGet shopifyCustomerPull, ShopifyOrderGet shopifyOrderPull, ShopifyTransactionGet shopifyTransactionPull, ExecutionLogService executionLogService, StateRepository stateRepository, IPushLogger logger, OrderApi orderApi) { _shopifyReferenceGet = shopifyReferenceGet; _shopifyInventoryPull = shopifyInventoryPull; _shopifyCustomerPull = shopifyCustomerPull; _shopifyOrderPull = shopifyOrderPull; _shopifyTransactionPull = shopifyTransactionPull; _executionLogService = executionLogService; _stateRepository = stateRepository; _logger = logger; _orderApi = orderApi; }
public IdentityService( MasterRepository masterRepository, PushIdentityDbContext dbContext, IdentityUserManager userManager, IdentityRoleManager roleManager, IdentitySignInManager signInManager, InstanceContext instanceContext, StateRepository stateRepository, IPushLogger logger, ShopifyUrlService shopifyUrlService) { _masterRepository = masterRepository; _dbContext = dbContext; _userManager = userManager; _roleManager = roleManager; _signInManager = signInManager; _instanceContext = instanceContext; _stateRepository = stateRepository; _logger = logger; _shopifyUrlService = shopifyUrlService; }
public ShopifyAuthController( OAuthApi oAuthApi, CredentialsRepository connectionRepository, InstanceContext connectionContext, ShopifyHttpContext shopifyHttpContext, IdentityService identityService, StateRepository stateRepository, HmacCryptoService hmacCrypto, ProvisioningService provisioningService, IPushLogger logger) { _provisioningService = provisioningService; _identityService = identityService; _oAuthApi = oAuthApi; _connectionRepository = connectionRepository; _connectionContext = connectionContext; _shopifyHttpContext = shopifyHttpContext; _stateRepository = stateRepository; _hmacCrypto = hmacCrypto; _logger = logger; }
public SyncManager( AcumaticaHttpContext acumaticaContext, AcumaticaCustomerPut acumaticaCustomerSync, AcumaticaOrderPut acumaticaOrderSync, AcumaticaStockItemPut acumaticaInventorySync, AcumaticaRefundPut acumaticaRefundSync, AcumaticaOrderPaymentPut acumaticaPaymentSync, WarehouseLocationSync warehouseLocationSync, ShopifyInventoryPut shopifyInventorySync, ShopifyFulfillmentPut shopifyFulfillmentSync, ShopifyProductVariantPut shopifyProductVariantPut, JobMonitoringService monitoringService, SettingsRepository settingsRepository, InstanceContext connectionContext, ExecutionLogService executionLogService, ILifetimeScope lifetimeScope, IPushLogger logger) { _warehouseLocationSync = warehouseLocationSync; _acumaticaCustomerSync = acumaticaCustomerSync; _acumaticaInventorySync = acumaticaInventorySync; _acumaticaRefundSync = acumaticaRefundSync; _acumaticaPaymentSync = acumaticaPaymentSync; _acumaticaOrderSync = acumaticaOrderSync; _shopifyInventorySync = shopifyInventorySync; _shopifyFulfillmentSync = shopifyFulfillmentSync; _shopifyProductVariantPut = shopifyProductVariantPut; _monitoringService = monitoringService; _acumaticaContext = acumaticaContext; _settingsRepository = settingsRepository; _connectionContext = connectionContext; _executionLogService = executionLogService; _lifetimeScope = lifetimeScope; _logger = logger; }
public AcumaticaOrderPaymentPut( SyncOrderRepository syncOrderRepository, PaymentClient paymentClient, SettingsRepository settingsRepository, ExecutionLogService logService, PendingActionService pendingActionService, JobMonitoringService jobMonitoringService, AcumaticaTimeZoneService acumaticaTimeZoneService, InvoiceClient invoiceClient, IPushLogger systemLogger, ShopifyJsonService shopifyJsonService) { _syncOrderRepository = syncOrderRepository; _paymentClient = paymentClient; _settingsRepository = settingsRepository; _pendingActionService = pendingActionService; _systemLogger = systemLogger; _shopifyJsonService = shopifyJsonService; _jobMonitoringService = jobMonitoringService; _acumaticaTimeZoneService = acumaticaTimeZoneService; _invoiceClient = invoiceClient; _logService = logService; }
public ProductApi(ShopifyHttpContext client, IPushLogger logger) { _httpClient = client; _logger = logger; }
public AutofacScopeTester(IPushLogger logger, ProcessPersistContext persist) { _logger = logger; _persist = persist; }
public HangfireLogger(IPushLogger logger) { _logger = logger; }
public ExecutionLogService(MiscPersistContext dataContext, IPushLogger logger) { _dataContext = dataContext; _logger = logger; }
public ShopifyHttpContext(ShopifyHttpConfig httpConfig, IPushLogger logger) { _httpConfig = httpConfig; _logger = logger; }
public static void RegisterInstance(IPushLogger loggerInstance) { _loggerInstance = loggerInstance; }
public InventoryApi(IPushLogger logger, ShopifyHttpContext httpClient) { _logger = logger; _httpClient = httpClient; }
public BankClient(HttpFacade clientFacade, IPushLogger logger) { _clientFacade = clientFacade; _logger = logger; }
public InvoiceClient(IPushLogger logger, AcumaticaHttpContext httpContext, AcumaticaHttpConfig config) { _logger = logger; _httpContext = httpContext; _config = config; }