Moved all the namespace to globalusings
This commit is contained in:
		
							parent
							
								
									6546b63aa4
								
							
						
					
					
						commit
						0fe244cc80
					
				| @ -1,10 +1,5 @@ | |||||||
| using Autofac; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.AutofacModules; | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; |  | ||||||
| using Ordering.SignalrHub.IntegrationEvents; |  | ||||||
| using System.Reflection; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.AutofacModules |  | ||||||
| { |  | ||||||
| public class ApplicationModule | public class ApplicationModule | ||||||
|     : Autofac.Module |     : Autofac.Module | ||||||
| { | { | ||||||
| @ -23,4 +18,3 @@ namespace Ordering.SignalrHub.AutofacModules | |||||||
| 
 | 
 | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  | |||||||
| @ -1,12 +1,5 @@ | |||||||
| using Microsoft.AspNetCore.SignalR; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents; | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; |  | ||||||
| using Microsoft.Extensions.Logging; |  | ||||||
| using Serilog.Context; |  | ||||||
| using System; |  | ||||||
| using System.Threading.Tasks; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents |  | ||||||
| { |  | ||||||
| public class OrderStatusChangedToAwaitingValidationIntegrationEventHandler : IIntegrationEventHandler<OrderStatusChangedToAwaitingValidationIntegrationEvent> | public class OrderStatusChangedToAwaitingValidationIntegrationEventHandler : IIntegrationEventHandler<OrderStatusChangedToAwaitingValidationIntegrationEvent> | ||||||
| { | { | ||||||
|     private readonly IHubContext<NotificationsHub> _hubContext; |     private readonly IHubContext<NotificationsHub> _hubContext; | ||||||
| @ -33,4 +26,3 @@ namespace Ordering.SignalrHub.IntegrationEvents | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  | |||||||
| @ -1,13 +1,5 @@ | |||||||
| using Microsoft.AspNetCore.SignalR; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents.EventHandling; | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; |  | ||||||
| using Microsoft.Extensions.Logging; |  | ||||||
| using Ordering.SignalrHub.IntegrationEvents.Events; |  | ||||||
| using Serilog.Context; |  | ||||||
| using System; |  | ||||||
| using System.Threading.Tasks; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents.EventHandling |  | ||||||
| { |  | ||||||
| public class OrderStatusChangedToCancelledIntegrationEventHandler : IIntegrationEventHandler<OrderStatusChangedToCancelledIntegrationEvent> | public class OrderStatusChangedToCancelledIntegrationEventHandler : IIntegrationEventHandler<OrderStatusChangedToCancelledIntegrationEvent> | ||||||
| { | { | ||||||
|     private readonly IHubContext<NotificationsHub> _hubContext; |     private readonly IHubContext<NotificationsHub> _hubContext; | ||||||
| @ -34,4 +26,3 @@ namespace Ordering.SignalrHub.IntegrationEvents.EventHandling | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
| @ -1,13 +1,5 @@ | |||||||
| using Microsoft.AspNetCore.SignalR; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents.EventHandling; | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; |  | ||||||
| using Microsoft.Extensions.Logging; |  | ||||||
| using Ordering.SignalrHub.IntegrationEvents.Events; |  | ||||||
| using Serilog.Context; |  | ||||||
| using System; |  | ||||||
| using System.Threading.Tasks; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents.EventHandling |  | ||||||
| { |  | ||||||
| public class OrderStatusChangedToPaidIntegrationEventHandler : IIntegrationEventHandler<OrderStatusChangedToPaidIntegrationEvent> | public class OrderStatusChangedToPaidIntegrationEventHandler : IIntegrationEventHandler<OrderStatusChangedToPaidIntegrationEvent> | ||||||
| { | { | ||||||
|     private readonly IHubContext<NotificationsHub> _hubContext; |     private readonly IHubContext<NotificationsHub> _hubContext; | ||||||
| @ -34,4 +26,3 @@ namespace Ordering.SignalrHub.IntegrationEvents.EventHandling | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  | |||||||
| @ -1,13 +1,5 @@ | |||||||
| using Microsoft.AspNetCore.SignalR; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents.EventHandling; | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; |  | ||||||
| using Microsoft.Extensions.Logging; |  | ||||||
| using Ordering.SignalrHub.IntegrationEvents.Events; |  | ||||||
| using Serilog.Context; |  | ||||||
| using System; |  | ||||||
| using System.Threading.Tasks; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents.EventHandling |  | ||||||
| { |  | ||||||
| public class OrderStatusChangedToShippedIntegrationEventHandler : IIntegrationEventHandler<OrderStatusChangedToShippedIntegrationEvent> | public class OrderStatusChangedToShippedIntegrationEventHandler : IIntegrationEventHandler<OrderStatusChangedToShippedIntegrationEvent> | ||||||
| { | { | ||||||
|     private readonly IHubContext<NotificationsHub> _hubContext; |     private readonly IHubContext<NotificationsHub> _hubContext; | ||||||
| @ -34,4 +26,3 @@ namespace Ordering.SignalrHub.IntegrationEvents.EventHandling | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  | |||||||
| @ -1,13 +1,5 @@ | |||||||
| using Microsoft.AspNetCore.SignalR; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents.EventHandling; | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; |  | ||||||
| using Microsoft.Extensions.Logging; |  | ||||||
| using Ordering.SignalrHub.IntegrationEvents.Events; |  | ||||||
| using Serilog.Context; |  | ||||||
| using System; |  | ||||||
| using System.Threading.Tasks; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents.EventHandling |  | ||||||
| { |  | ||||||
| public class OrderStatusChangedToStockConfirmedIntegrationEventHandler : | public class OrderStatusChangedToStockConfirmedIntegrationEventHandler : | ||||||
|     IIntegrationEventHandler<OrderStatusChangedToStockConfirmedIntegrationEvent> |     IIntegrationEventHandler<OrderStatusChangedToStockConfirmedIntegrationEvent> | ||||||
| { | { | ||||||
| @ -35,4 +27,3 @@ namespace Ordering.SignalrHub.IntegrationEvents.EventHandling | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  | |||||||
| @ -1,13 +1,4 @@ | |||||||
| using Microsoft.AspNetCore.SignalR; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents.EventHandling; | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; |  | ||||||
| using Microsoft.Extensions.Logging; |  | ||||||
| using Ordering.SignalrHub.IntegrationEvents.Events; |  | ||||||
| using Serilog.Context; |  | ||||||
| using System; |  | ||||||
| using System.Threading.Tasks; |  | ||||||
| 
 |  | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents.EventHandling |  | ||||||
| { |  | ||||||
| public class OrderStatusChangedToSubmittedIntegrationEventHandler : | public class OrderStatusChangedToSubmittedIntegrationEventHandler : | ||||||
|     IIntegrationEventHandler<OrderStatusChangedToSubmittedIntegrationEvent> |     IIntegrationEventHandler<OrderStatusChangedToSubmittedIntegrationEvent> | ||||||
| { | { | ||||||
| @ -35,4 +26,3 @@ namespace Ordering.SignalrHub.IntegrationEvents.EventHandling | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
| @ -1,7 +1,4 @@ | |||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents; | ||||||
| 
 |  | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents |  | ||||||
| { |  | ||||||
| public record OrderStatusChangedToAwaitingValidationIntegrationEvent : IntegrationEvent | public record OrderStatusChangedToAwaitingValidationIntegrationEvent : IntegrationEvent | ||||||
| { | { | ||||||
|     public int OrderId { get; } |     public int OrderId { get; } | ||||||
| @ -15,4 +12,4 @@ namespace Ordering.SignalrHub.IntegrationEvents | |||||||
|         BuyerName = buyerName; |         BuyerName = buyerName; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } | 
 | ||||||
|  | |||||||
| @ -1,7 +1,5 @@ | |||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents.Events; | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents.Events |  | ||||||
| { |  | ||||||
| public record OrderStatusChangedToCancelledIntegrationEvent : IntegrationEvent | public record OrderStatusChangedToCancelledIntegrationEvent : IntegrationEvent | ||||||
| { | { | ||||||
|     public int OrderId { get; } |     public int OrderId { get; } | ||||||
| @ -15,4 +13,4 @@ namespace Ordering.SignalrHub.IntegrationEvents.Events | |||||||
|         BuyerName = buyerName; |         BuyerName = buyerName; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } | 
 | ||||||
|  | |||||||
| @ -1,7 +1,5 @@ | |||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents.Events; | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents.Events |  | ||||||
| { |  | ||||||
| public record OrderStatusChangedToPaidIntegrationEvent : IntegrationEvent | public record OrderStatusChangedToPaidIntegrationEvent : IntegrationEvent | ||||||
| { | { | ||||||
|     public int OrderId { get; } |     public int OrderId { get; } | ||||||
| @ -16,4 +14,3 @@ namespace Ordering.SignalrHub.IntegrationEvents.Events | |||||||
|         BuyerName = buyerName; |         BuyerName = buyerName; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  | |||||||
| @ -1,7 +1,5 @@ | |||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents.Events; | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents.Events |  | ||||||
| { |  | ||||||
| public record OrderStatusChangedToShippedIntegrationEvent : IntegrationEvent | public record OrderStatusChangedToShippedIntegrationEvent : IntegrationEvent | ||||||
| { | { | ||||||
|     public int OrderId { get; } |     public int OrderId { get; } | ||||||
| @ -15,4 +13,4 @@ namespace Ordering.SignalrHub.IntegrationEvents.Events | |||||||
|         BuyerName = buyerName; |         BuyerName = buyerName; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } | 
 | ||||||
|  | |||||||
| @ -1,7 +1,5 @@ | |||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents.Events; | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents.Events |  | ||||||
| { |  | ||||||
| public record OrderStatusChangedToStockConfirmedIntegrationEvent : IntegrationEvent | public record OrderStatusChangedToStockConfirmedIntegrationEvent : IntegrationEvent | ||||||
| { | { | ||||||
|     public int OrderId { get; } |     public int OrderId { get; } | ||||||
| @ -15,4 +13,3 @@ namespace Ordering.SignalrHub.IntegrationEvents.Events | |||||||
|         BuyerName = buyerName; |         BuyerName = buyerName; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  | |||||||
| @ -1,7 +1,5 @@ | |||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub.IntegrationEvents.Events; | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub.IntegrationEvents.Events |  | ||||||
| { |  | ||||||
| public record OrderStatusChangedToSubmittedIntegrationEvent : IntegrationEvent | public record OrderStatusChangedToSubmittedIntegrationEvent : IntegrationEvent | ||||||
| { | { | ||||||
|     public int OrderId { get; } |     public int OrderId { get; } | ||||||
| @ -15,4 +13,3 @@ namespace Ordering.SignalrHub.IntegrationEvents.Events | |||||||
|         BuyerName = buyerName; |         BuyerName = buyerName; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  | |||||||
| @ -1,10 +1,5 @@ | |||||||
| using Microsoft.AspNetCore.Authorization; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub; | ||||||
| using Microsoft.AspNetCore.SignalR; |  | ||||||
| using System; |  | ||||||
| using System.Threading.Tasks; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub |  | ||||||
| { |  | ||||||
| [Authorize] | [Authorize] | ||||||
| public class NotificationsHub : Hub | public class NotificationsHub : Hub | ||||||
| { | { | ||||||
| @ -21,4 +16,3 @@ namespace Ordering.SignalrHub | |||||||
|         await base.OnDisconnectedAsync(ex); |         await base.OnDisconnectedAsync(ex); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  | |||||||
| @ -1,12 +1,4 @@ | |||||||
| using Microsoft.AspNetCore; | var configuration = GetConfiguration(); | ||||||
| using Microsoft.AspNetCore.Hosting; |  | ||||||
| using Microsoft.Extensions.Configuration; |  | ||||||
| using Serilog; |  | ||||||
| using System; |  | ||||||
| using System.IO; |  | ||||||
| using Ordering.SignalrHub; |  | ||||||
| 
 |  | ||||||
| var configuration = GetConfiguration(); |  | ||||||
| 
 | 
 | ||||||
| Log.Logger = CreateSerilogLogger(configuration); | Log.Logger = CreateSerilogLogger(configuration); | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,29 +1,5 @@ | |||||||
| using Autofac; | namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub; | ||||||
| using Autofac.Extensions.DependencyInjection; |  | ||||||
| using HealthChecks.UI.Client; |  | ||||||
| using Microsoft.AspNetCore.Authentication.JwtBearer; |  | ||||||
| using Microsoft.AspNetCore.Builder; |  | ||||||
| using Microsoft.AspNetCore.Diagnostics.HealthChecks; |  | ||||||
| using Microsoft.Azure.ServiceBus; |  | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus; |  | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; |  | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBusRabbitMQ; |  | ||||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBusServiceBus; |  | ||||||
| using Microsoft.Extensions.Configuration; |  | ||||||
| using Microsoft.Extensions.DependencyInjection; |  | ||||||
| using Microsoft.Extensions.Diagnostics.HealthChecks; |  | ||||||
| using Microsoft.Extensions.Logging; |  | ||||||
| using Ordering.SignalrHub.AutofacModules; |  | ||||||
| using Ordering.SignalrHub.IntegrationEvents; |  | ||||||
| using Ordering.SignalrHub.IntegrationEvents.EventHandling; |  | ||||||
| using Ordering.SignalrHub.IntegrationEvents.Events; |  | ||||||
| using RabbitMQ.Client; |  | ||||||
| using System; |  | ||||||
| using System.IdentityModel.Tokens.Jwt; |  | ||||||
| using System.Threading.Tasks; |  | ||||||
| 
 | 
 | ||||||
| namespace Ordering.SignalrHub |  | ||||||
| { |  | ||||||
| public class Startup | public class Startup | ||||||
| { | { | ||||||
|     public Startup(IConfiguration configuration) |     public Startup(IConfiguration configuration) | ||||||
| @ -271,4 +247,3 @@ namespace Ordering.SignalrHub | |||||||
|         return services; |         return services; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user