Skip to content

Commit 6f463c4

Browse files
committed
Updated the constructors to allow the iloggerfactory
1 parent 60d2519 commit 6f463c4

38 files changed

+110
-78
lines changed

Source/FikaAmazonAPI/AmazonConnection.cs

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -118,44 +118,44 @@ private void Init(AmazonCredential Credentials)
118118

119119
this.Credentials = Credentials;
120120

121-
this._Authorization = new AuthorizationService(this.Credentials);
122-
this._AppIntegrationsServiceV20240401 = new AppIntegrationsServiceV20240401(this.Credentials);
123-
this._Orders = new OrderService(this.Credentials);
124-
this._Reports = new ReportService(this.Credentials);
125-
this._Solicitations = new SolicitationService(this.Credentials);
126-
this._Financials = new FinancialService(this.Credentials);
127-
this._CatalogItems = new CatalogItemService(this.Credentials);
128-
this._ProductPricing = new ProductPricingService(this.Credentials);
121+
this._Authorization = new AuthorizationService(this.Credentials, _loggerFactory);
122+
this._AppIntegrationsServiceV20240401 = new AppIntegrationsServiceV20240401(this.Credentials, _loggerFactory);
123+
this._Orders = new OrderService(this.Credentials, _loggerFactory);
124+
this._Reports = new ReportService(this.Credentials, _loggerFactory);
125+
this._Solicitations = new SolicitationService(this.Credentials, _loggerFactory);
126+
this._Financials = new FinancialService(this.Credentials, _loggerFactory);
127+
this._CatalogItems = new CatalogItemService(this.Credentials, _loggerFactory);
128+
this._ProductPricing = new ProductPricingService(this.Credentials, _loggerFactory);
129129

130-
this._FbaInbound = new FbaInboundService(this.Credentials, this.RateLimitingHandler);
131-
this._FbaInventory = new FbaInventoryService(this.Credentials, this.RateLimitingHandler);
132-
this._FbaOutbound = new FbaOutboundService(this.Credentials, this.RateLimitingHandler);
133-
this._FbaSmallandLight = new FbaSmallandLightService(this.Credentials, this.RateLimitingHandler);
134-
this._FbaInboundEligibility = new FbaInboundEligibilityService(this.Credentials, this.RateLimitingHandler);
135-
this._EasyShip20220323 = new EasyShip20220323Service(this.Credentials, this.RateLimitingHandler);
136-
this._AplusContent = new AplusContentService(this.Credentials, this.RateLimitingHandler);
137-
this._Feed = new FeedService(this.Credentials, this.RateLimitingHandler);
130+
this._FbaInbound = new FbaInboundService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
131+
this._FbaInventory = new FbaInventoryService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
132+
this._FbaOutbound = new FbaOutboundService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
133+
this._FbaSmallandLight = new FbaSmallandLightService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
134+
this._FbaInboundEligibility = new FbaInboundEligibilityService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
135+
this._EasyShip20220323 = new EasyShip20220323Service(this.Credentials, _loggerFactory, this.RateLimitingHandler);
136+
this._AplusContent = new AplusContentService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
137+
this._Feed = new FeedService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
138138
this._ListingsItem = new ListingsItemService(this.Credentials, _loggerFactory, this.RateLimitingHandler );
139-
this._Restrictions = new RestrictionService(this.Credentials, this.RateLimitingHandler);
140-
this._MerchantFulfillment = new MerchantFulfillmentService(this.Credentials, this.RateLimitingHandler);
141-
this._Messaging = new MessagingService(this.Credentials, this.RateLimitingHandler);
142-
this._Notification = new NotificationService(this.Credentials, this.RateLimitingHandler);
143-
this._ProductFee = new ProductFeeService(this.Credentials, this.RateLimitingHandler);
144-
this._ProductType = new ProductTypeService(this.Credentials, this.RateLimitingHandler);
145-
this._Sales = new SalesService(this.Credentials, this.RateLimitingHandler);
146-
this._Seller = new SellerService(this.Credentials, this.RateLimitingHandler);
147-
this._Services = new ServicesService(this.Credentials, this.RateLimitingHandler);
148-
this._ShipmentInvoicing = new ShipmentInvoicingService(this.Credentials, this.RateLimitingHandler);
149-
this._Shipping = new ShippingService(this.Credentials, this.RateLimitingHandler);
150-
this._ShippingV2 = new ShippingServiceV2(this.Credentials, this.RateLimitingHandler);
151-
this._Upload = new UploadService(this.Credentials, this.RateLimitingHandler);
152-
this._Tokens = new TokenService(this.Credentials, this.RateLimitingHandler);
153-
this._FulFillmentInbound = new FulFillmentInboundService(this.Credentials, this.RateLimitingHandler);
154-
this._FulFillmentInboundv20240320 = new FulFillmentInboundServicev20240320(this.Credentials, this.RateLimitingHandler);
155-
this._FulFillmentOutbound = new FulFillmentOutboundService(this.Credentials, this.RateLimitingHandler);
156-
this._VendorDirectFulfillmentOrders = new VendorDirectFulfillmentOrderService(this.Credentials, this.RateLimitingHandler);
157-
this._VendorOrders = new VendorOrderService(this.Credentials, this.RateLimitingHandler);
158-
this._VendorTransactionStatus = new VendorTransactionStatusService(this.Credentials, this.RateLimitingHandler);
139+
this._Restrictions = new RestrictionService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
140+
this._MerchantFulfillment = new MerchantFulfillmentService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
141+
this._Messaging = new MessagingService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
142+
this._Notification = new NotificationService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
143+
this._ProductFee = new ProductFeeService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
144+
this._ProductType = new ProductTypeService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
145+
this._Sales = new SalesService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
146+
this._Seller = new SellerService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
147+
this._Services = new ServicesService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
148+
this._ShipmentInvoicing = new ShipmentInvoicingService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
149+
this._Shipping = new ShippingService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
150+
this._ShippingV2 = new ShippingServiceV2(this.Credentials, _loggerFactory, this.RateLimitingHandler);
151+
this._Upload = new UploadService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
152+
this._Tokens = new TokenService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
153+
this._FulFillmentInbound = new FulFillmentInboundService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
154+
this._FulFillmentInboundv20240320 = new FulFillmentInboundServicev20240320(this.Credentials, _loggerFactory, this.RateLimitingHandler);
155+
this._FulFillmentOutbound = new FulFillmentOutboundService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
156+
this._VendorDirectFulfillmentOrders = new VendorDirectFulfillmentOrderService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
157+
this._VendorOrders = new VendorOrderService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
158+
this._VendorTransactionStatus = new VendorTransactionStatusService(this.Credentials, _loggerFactory, this.RateLimitingHandler);
159159

160160
AmazonCredential.DebugMode = this.Credentials.IsDebugMode;
161161
}

Source/FikaAmazonAPI/Services/AplusContentService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
using FikaAmazonAPI.Utils;
2+
using Microsoft.Extensions.Logging;
23

34
namespace FikaAmazonAPI.Services
45
{
56

67
public class AplusContentService : RequestService
78
{
89

9-
public AplusContentService(AmazonCredential amazonCredential, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, rateLimitingHandler)
10+
public AplusContentService(AmazonCredential amazonCredential,ILoggerFactory? loggerFactory, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, loggerFactory, rateLimitingHandler)
1011
{
1112

1213
}

Source/FikaAmazonAPI/Services/AppIntegrationsV20240401.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
using System.Text;
66
using System.Threading.Tasks;
77
using System.Threading;
8+
using Microsoft.Extensions.Logging;
89

910
namespace FikaAmazonAPI.Services
1011
{
1112
public class AppIntegrationsServiceV20240401: RequestService
1213
{
13-
public AppIntegrationsServiceV20240401(AmazonCredential amazonCredential, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, rateLimitingHandler)
14+
public AppIntegrationsServiceV20240401(AmazonCredential amazonCredential,ILoggerFactory? loggerFactory, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, loggerFactory, rateLimitingHandler)
1415
{
1516

1617
}

Source/FikaAmazonAPI/Services/AuthorizationService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
using FikaAmazonAPI.Utils;
55
using System.Threading;
66
using System.Threading.Tasks;
7+
using Microsoft.Extensions.Logging;
78
using static FikaAmazonAPI.AmazonSpApiSDK.Models.Token.CacheTokenData;
89

910
namespace FikaAmazonAPI.Services
1011
{
1112
public class AuthorizationService : RequestService
1213
{
13-
public AuthorizationService(AmazonCredential amazonCredential, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, rateLimitingHandler)
14+
public AuthorizationService(AmazonCredential amazonCredential, ILoggerFactory? loggerFactory, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, loggerFactory, rateLimitingHandler)
1415
{
1516
}
1617
public string GetAuthorizationCode(ParameterAuthorizationCode parameterGetOrderMetrics) =>

Source/FikaAmazonAPI/Services/CatalogItemService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
using System.IO;
99
using System.Threading;
1010
using System.Threading.Tasks;
11+
using Microsoft.Extensions.Logging;
1112
using Item = FikaAmazonAPI.AmazonSpApiSDK.Models.CatalogItems.Item;
1213

1314
namespace FikaAmazonAPI.Services
1415
{
1516
public class CatalogItemService : RequestService
1617
{
17-
public CatalogItemService(AmazonCredential amazonCredential, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, rateLimitingHandler)
18+
public CatalogItemService(AmazonCredential amazonCredential,ILoggerFactory? loggerFactory, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, loggerFactory, rateLimitingHandler)
1819
{
1920

2021
}

Source/FikaAmazonAPI/Services/EasyShip20220323Service.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
using FikaAmazonAPI.Utils;
44
using System.Threading;
55
using System.Threading.Tasks;
6+
using Microsoft.Extensions.Logging;
67

78
namespace FikaAmazonAPI.Services
89
{
910
public class EasyShip20220323Service : RequestService
1011
{
11-
public EasyShip20220323Service(AmazonCredential amazonCredential, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, rateLimitingHandler)
12+
public EasyShip20220323Service(AmazonCredential amazonCredential,ILoggerFactory? loggerFactory, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, loggerFactory, rateLimitingHandler)
1213
{
1314

1415
}

Source/FikaAmazonAPI/Services/FbaInboundEligibilityService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
using FikaAmazonAPI.Utils;
44
using System.Threading;
55
using System.Threading.Tasks;
6+
using Microsoft.Extensions.Logging;
67

78
namespace FikaAmazonAPI.Services
89
{
910
public class FbaInboundEligibilityService : RequestService
1011
{
11-
public FbaInboundEligibilityService(AmazonCredential amazonCredential, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, rateLimitingHandler)
12+
public FbaInboundEligibilityService(AmazonCredential amazonCredential,ILoggerFactory? loggerFactory, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, loggerFactory, rateLimitingHandler)
1213
{
1314

1415
}

Source/FikaAmazonAPI/Services/FbaInboundService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using FikaAmazonAPI.Utils;
2+
using Microsoft.Extensions.Logging;
23

34
namespace FikaAmazonAPI.Services
45
{
56
public class FbaInboundService : RequestService
67
{
7-
public FbaInboundService(AmazonCredential amazonCredential, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, rateLimitingHandler)
8+
public FbaInboundService(AmazonCredential amazonCredential, ILoggerFactory? loggerFactory, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, loggerFactory, rateLimitingHandler)
89
{
910

1011
}

Source/FikaAmazonAPI/Services/FbaInventoryService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
using System.Collections.Generic;
55
using System.Threading;
66
using System.Threading.Tasks;
7+
using Microsoft.Extensions.Logging;
78

89
namespace FikaAmazonAPI.Services
910
{
1011
public class FbaInventoryService : RequestService
1112
{
1213

13-
public FbaInventoryService(AmazonCredential amazonCredential, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, rateLimitingHandler)
14+
public FbaInventoryService(AmazonCredential amazonCredential, ILoggerFactory? loggerFactory, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, loggerFactory, rateLimitingHandler)
1415
{
1516

1617
}

Source/FikaAmazonAPI/Services/FbaOutboundService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using FikaAmazonAPI.Utils;
2+
using Microsoft.Extensions.Logging;
23

34
namespace FikaAmazonAPI.Services
45
{
56
public class FbaOutboundService : RequestService
67
{
7-
public FbaOutboundService(AmazonCredential amazonCredential, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, rateLimitingHandler)
8+
public FbaOutboundService(AmazonCredential amazonCredential,ILoggerFactory? loggerFactory, IRateLimitingHandler rateLimitingHandler = null) : base(amazonCredential, loggerFactory, rateLimitingHandler)
89
{
910

1011
}

0 commit comments

Comments
 (0)