From 7a04be0f30a6efeed57a53daef865acb21b52464 Mon Sep 17 00:00:00 2001 From: rockstardev Date: Sun, 13 Sep 2020 17:19:14 -0500 Subject: [PATCH] Registering ShopifyOrderMarkerHostedService --- BTCPayServer/Hosting/BTCPayServerServices.cs | 4 +++- .../Services/Shopify/OrderTransactionRegisterLogic.cs | 3 --- .../Services/Shopify/ShopifyOrderMarkerHostedService.cs | 4 ---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/BTCPayServer/Hosting/BTCPayServerServices.cs b/BTCPayServer/Hosting/BTCPayServerServices.cs index ef5e32576..fa55e1d19 100644 --- a/BTCPayServer/Hosting/BTCPayServerServices.cs +++ b/BTCPayServer/Hosting/BTCPayServerServices.cs @@ -25,6 +25,7 @@ using BTCPayServer.Services.Notifications; using BTCPayServer.Services.Notifications.Blobs; using BTCPayServer.Services.PaymentRequests; using BTCPayServer.Services.Rates; +using BTCPayServer.Services.Shopify; using BTCPayServer.Services.Stores; using BTCPayServer.Services.Wallets; using BTCPayServer.U2F; @@ -245,7 +246,8 @@ namespace BTCPayServer.Hosting services.AddSingleton(); services.AddSingleton(); - + + services.AddSingleton(); #if DEBUG services.AddSingleton(); #endif diff --git a/BTCPayServer/Services/Shopify/OrderTransactionRegisterLogic.cs b/BTCPayServer/Services/Shopify/OrderTransactionRegisterLogic.cs index eab6bca34..d797043ca 100644 --- a/BTCPayServer/Services/Shopify/OrderTransactionRegisterLogic.cs +++ b/BTCPayServer/Services/Shopify/OrderTransactionRegisterLogic.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; using Newtonsoft.Json.Linq; diff --git a/BTCPayServer/Services/Shopify/ShopifyOrderMarkerHostedService.cs b/BTCPayServer/Services/Shopify/ShopifyOrderMarkerHostedService.cs index 8fb4b3fdf..79df618ea 100644 --- a/BTCPayServer/Services/Shopify/ShopifyOrderMarkerHostedService.cs +++ b/BTCPayServer/Services/Shopify/ShopifyOrderMarkerHostedService.cs @@ -1,14 +1,10 @@ using System; -using System.Collections.Generic; using System.Globalization; -using System.Linq; using System.Net.Http; -using System.Text; using System.Threading; using System.Threading.Tasks; using BTCPayServer.Data; using BTCPayServer.Logging; -using BTCPayServer.Services.Invoices; using BTCPayServer.Services.Stores; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging;