Fix compiler warnings for unused variables
This commit is contained in:
		
							parent
							
								
									0cbd7b24e8
								
							
						
					
					
						commit
						631a64940e
					
				| @ -7,17 +7,6 @@ using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.Order | ||||
| public class CreateOrderDraftCommandHandler | ||||
|     : IRequestHandler<CreateOrderDraftCommand, OrderDraftDTO> | ||||
| { | ||||
|     private readonly IOrderRepository _orderRepository; | ||||
|     private readonly IIdentityService _identityService; | ||||
|     private readonly IMediator _mediator; | ||||
| 
 | ||||
|     // Using DI to inject infrastructure persistence Repositories | ||||
|     public CreateOrderDraftCommandHandler(IMediator mediator, IIdentityService identityService) | ||||
|     { | ||||
|         _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService)); | ||||
|         _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); | ||||
|     } | ||||
| 
 | ||||
|     public Task<OrderDraftDTO> Handle(CreateOrderDraftCommand message, CancellationToken cancellationToken) | ||||
|     { | ||||
| 
 | ||||
| @ -32,7 +21,6 @@ public class CreateOrderDraftCommandHandler | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| public record OrderDraftDTO | ||||
| { | ||||
|     public IEnumerable<OrderItemDTO> OrderItems { get; init; } | ||||
|  | ||||
| @ -2,8 +2,8 @@ | ||||
| 
 | ||||
| public class ProductPriceChangedIntegrationEventHandler : IIntegrationEventHandler<ProductPriceChangedIntegrationEvent> | ||||
| { | ||||
|     public async Task Handle(ProductPriceChangedIntegrationEvent @event) | ||||
|     public Task Handle(ProductPriceChangedIntegrationEvent @event) | ||||
|     { | ||||
|         int i = 0; | ||||
|         return Task.CompletedTask; | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user