From c15f28ed9b29a8795c67fd6714efeff92c248c57 Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Sat, 8 Jan 2022 23:31:30 +0300 Subject: [PATCH] removed unused comments and usings --- .../PaymentRequests/IPaymentRequestAppService.cs | 7 ------- .../PaymentRequests/PaymentRequestAppService.cs | 2 -- .../PaymentServiceApplicationModule.cs | 1 + .../PaymentServices/PaymentServiceFactory.cs | 8 +------- 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/services/payment/src/EShopOnAbp.PaymentService.Application.Contracts/PaymentRequests/IPaymentRequestAppService.cs b/services/payment/src/EShopOnAbp.PaymentService.Application.Contracts/PaymentRequests/IPaymentRequestAppService.cs index c41feb31..366c3413 100644 --- a/services/payment/src/EShopOnAbp.PaymentService.Application.Contracts/PaymentRequests/IPaymentRequestAppService.cs +++ b/services/payment/src/EShopOnAbp.PaymentService.Application.Contracts/PaymentRequests/IPaymentRequestAppService.cs @@ -12,12 +12,5 @@ namespace EShopOnAbp.PaymentService.PaymentRequests Task CompleteAsync(PaymentRequestCompleteInputDto input); Task HandleWebhookAsync(string payload); - // /// - // /// 0 - Demo - // /// 1 - Paypal - // /// - // /// - // /// - // Task SetPaymentServiceAsync(int paymentTypeId); } } diff --git a/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentRequests/PaymentRequestAppService.cs b/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentRequests/PaymentRequestAppService.cs index 82e582f2..9b4120df 100644 --- a/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentRequests/PaymentRequestAppService.cs +++ b/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentRequests/PaymentRequestAppService.cs @@ -5,7 +5,6 @@ using System; using System.Linq; using System.Threading.Tasks; using EShopOnAbp.PaymentService.PaymentServices; -using Microsoft.Extensions.Logging; namespace EShopOnAbp.PaymentService.PaymentRequests { @@ -16,7 +15,6 @@ namespace EShopOnAbp.PaymentService.PaymentRequests protected IPaymentRequestRepository PaymentRequestRepository { get; } protected PayPalHttpClient PayPalHttpClient { get; } - public PaymentRequestAppService( IPaymentRequestRepository paymentRequestRepository, PayPalHttpClient payPalHttpClient, diff --git a/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentServiceApplicationModule.cs b/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentServiceApplicationModule.cs index e57c90b7..d4a30160 100644 --- a/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentServiceApplicationModule.cs +++ b/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentServiceApplicationModule.cs @@ -7,6 +7,7 @@ using EShopOnAbp.PaymentService.PayPal; using PayPalCheckoutSdk.Core; using System; using EShopOnAbp.PaymentService.PaymentRequests; +using EShopOnAbp.PaymentService.PaymentServices; namespace EShopOnAbp.PaymentService { diff --git a/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentServices/PaymentServiceFactory.cs b/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentServices/PaymentServiceFactory.cs index 719ea7da..7e2fab1d 100644 --- a/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentServices/PaymentServiceFactory.cs +++ b/services/payment/src/EShopOnAbp.PaymentService.Application/PaymentServices/PaymentServiceFactory.cs @@ -1,7 +1,6 @@ using System; using EShopOnAbp.PaymentService.PaymentRequests; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; using PayPalCheckoutSdk.Core; using Volo.Abp.DependencyInjection; @@ -10,13 +9,10 @@ namespace EShopOnAbp.PaymentService.PaymentServices; public class PaymentServiceFactory : ITransientDependency { private readonly IServiceProvider _serviceProvider; - private readonly ILogger _logger; - public PaymentServiceFactory(IServiceProvider serviceProvider, ILogger logger) + public PaymentServiceFactory(IServiceProvider serviceProvider) { - logger.LogInformation("== Payment SErvice Factory == "); _serviceProvider = serviceProvider; - _logger = logger; } public IPaymentStrategy Create(int paymentTypeId) @@ -29,9 +25,7 @@ public class PaymentServiceFactory : ITransientDependency if (paymentTypeId == 1) { var paypalService = _serviceProvider.GetRequiredService(); - _logger.LogInformation($"=== Resolved PaypalService {paypalService} ==="); var requestDomainService = _serviceProvider.GetRequiredService(); - _logger.LogInformation($"=== Resolved PaymentRequestDomainService {requestDomainService} ==="); return new PaypalService(paypalService, requestDomainService); }