From 85ad916fcbf8577b6b53ee2d85d34ac4f0d31e09 Mon Sep 17 00:00:00 2001 From: Reuben Bond Date: Wed, 22 Feb 2023 16:31:57 -0800 Subject: [PATCH] Remove redundant using directives --- .../Mobile.Bff.Shopping/aggregator/Startup.cs | 5 +- .../aggregator/GlobalUsings.cs | 1 - .../Web.Bff.Shopping/aggregator/Startup.cs | 5 +- .../InMemory_SubscriptionManager_Tests.cs | 1 - .../EventBus.Tests/TestIntegrationEvent.cs | 3 - .../TestIntegrationEventHandler.cs | 3 - .../TestIntegrationOtherEventHandler.cs | 3 - .../EventBusServiceBus/GlobalUsings.cs | 5 - .../Basket/Basket.API/GlobalUsings.cs | 121 +++++++++--------- src/Services/Basket/Basket.API/Startup.cs | 3 - .../Basket/Basket.UnitTests/GlobalUsings.cs | 1 - .../Catalog/Catalog.API/Catalog.API.csproj | 1 - .../Catalog/Catalog.API/GlobalUsings.cs | 3 +- .../Infrastructure/CatalogContext.cs | 4 +- .../Infrastructure/CatalogContextSeed.cs | 4 +- .../20170314083211_AddEventTable.cs | 1 - ...012921_RefactoringToIntegrationEventLog.cs | 1 - ...170322124244_RemoveIntegrationEventLogs.cs | 1 - .../CatalogContextModelSnapshot.cs | 4 +- .../20170322145434_IntegrationEventInitial.cs | 1 - ...grationEventLogContextDesignTimeFactory.cs | 6 +- .../Identity.API/Configuration/Config.cs | 4 +- .../20210914100206_InitialMigration.cs | 5 +- .../Identity/Identity.API/GlobalUsings.cs | 10 -- .../ConsentViewModels/ConsentInputModel.cs | 4 +- .../ConsentViewModels/ConsentViewModel.cs | 4 +- .../ConsentViewModels/ProcessConsentResult.cs | 4 +- .../Quickstart/Account/AccountController.cs | 7 - .../Quickstart/Home/HomeController.cs | 4 - .../Identity/Identity.API/SeedData.cs | 3 - .../OrderCancelledDomainEventHandler.cs | 4 +- .../Ordering/Ordering.API/GlobalUsings.cs | 5 - .../20170330131634_IntegrationEventInitial.cs | 1 - ...grationEventLogContextDesignTimeFactory.cs | 6 +- .../Migrations/20170208181933_Initial.cs | 1 - .../20170303085729_RequestsTable.cs | 1 - src/Services/Ordering/Ordering.API/Startup.cs | 3 - .../Extensions/CustomExtensionMethods.cs | 1 - .../AggregatesModel/OrderAggregate/Order.cs | 4 +- .../OrderingScenarios.cs | 2 - .../Ordering.Infrastructure/GlobalUsings.cs | 1 - .../Ordering.SignalrHub/GlobalUsings.cs | 1 - .../Ordering/Ordering.SignalrHub/Startup.cs | 3 - .../Ordering.UnitTests/GlobalUsings.cs | 3 - .../Payment/Payment.API/GlobalUsings.cs | 3 +- .../Webhooks/Webhooks.API/GlobalUsings.cs | 2 - .../Migrations/20190118091148_Initial.cs | 1 - src/Services/Webhooks/Webhooks.API/Startup.cs | 3 - .../GlobalUsings.cs | 4 - src/Web/WebMVC/globalusings.cs | 1 - src/Web/WebSPA/GlobalUsings.cs | 2 - src/Web/WebStatus/GlobalUsings.cs | 5 - src/Web/WebhookClient/Pages/Error.cshtml.cs | 1 - .../Pages/RegisterWebhook.cshtml.cs | 10 +- .../Pages/WebhooksList.cshtml.cs | 4 - 55 files changed, 76 insertions(+), 218 deletions(-) diff --git a/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Startup.cs b/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Startup.cs index 1945cebaa..38acbe08e 100644 --- a/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Startup.cs +++ b/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Startup.cs @@ -1,7 +1,4 @@ -using Microsoft.AspNetCore.Authentication.Cookies; -using Microsoft.AspNetCore.Authentication.OpenIdConnect; - -namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator; +namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator; public class Startup { diff --git a/src/ApiGateways/Web.Bff.Shopping/aggregator/GlobalUsings.cs b/src/ApiGateways/Web.Bff.Shopping/aggregator/GlobalUsings.cs index 58765400a..bac63c2e2 100644 --- a/src/ApiGateways/Web.Bff.Shopping/aggregator/GlobalUsings.cs +++ b/src/ApiGateways/Web.Bff.Shopping/aggregator/GlobalUsings.cs @@ -5,7 +5,6 @@ global using Grpc.Core; global using GrpcBasket; global using GrpcOrdering; global using HealthChecks.UI.Client; -global using Microsoft.AspNetCore.Authentication.JwtBearer; global using Microsoft.AspNetCore.Authentication; global using Microsoft.AspNetCore.Authorization; global using Microsoft.AspNetCore.Builder; diff --git a/src/ApiGateways/Web.Bff.Shopping/aggregator/Startup.cs b/src/ApiGateways/Web.Bff.Shopping/aggregator/Startup.cs index 272ab3587..8cf212fe6 100644 --- a/src/ApiGateways/Web.Bff.Shopping/aggregator/Startup.cs +++ b/src/ApiGateways/Web.Bff.Shopping/aggregator/Startup.cs @@ -1,7 +1,4 @@ -using Microsoft.AspNetCore.Authentication.Cookies; -using Microsoft.AspNetCore.Authentication.OpenIdConnect; - -namespace Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator; +namespace Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator; public class Startup { diff --git a/src/BuildingBlocks/EventBus/EventBus.Tests/InMemory_SubscriptionManager_Tests.cs b/src/BuildingBlocks/EventBus/EventBus.Tests/InMemory_SubscriptionManager_Tests.cs index 13ae99afa..1aab08c36 100644 --- a/src/BuildingBlocks/EventBus/EventBus.Tests/InMemory_SubscriptionManager_Tests.cs +++ b/src/BuildingBlocks/EventBus/EventBus.Tests/InMemory_SubscriptionManager_Tests.cs @@ -1,5 +1,4 @@ using Microsoft.eShopOnContainers.BuildingBlocks.EventBus; -using System; using System.Linq; using Xunit; diff --git a/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationEvent.cs b/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationEvent.cs index 4e85e7ae6..63496664f 100644 --- a/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationEvent.cs +++ b/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationEvent.cs @@ -1,7 +1,4 @@ using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; -using System; -using System.Collections.Generic; -using System.Text; namespace EventBus.Tests { diff --git a/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationEventHandler.cs b/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationEventHandler.cs index 72e1ed2cd..8545dc893 100644 --- a/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationEventHandler.cs +++ b/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationEventHandler.cs @@ -1,7 +1,4 @@ using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; -using System; -using System.Collections.Generic; -using System.Text; using System.Threading.Tasks; namespace EventBus.Tests diff --git a/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationOtherEventHandler.cs b/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationOtherEventHandler.cs index 0b5b793ee..b4ea66bb4 100644 --- a/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationOtherEventHandler.cs +++ b/src/BuildingBlocks/EventBus/EventBus.Tests/TestIntegrationOtherEventHandler.cs @@ -1,7 +1,4 @@ using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; -using System; -using System.Collections.Generic; -using System.Text; using System.Threading.Tasks; namespace EventBus.Tests diff --git a/src/BuildingBlocks/EventBus/EventBusServiceBus/GlobalUsings.cs b/src/BuildingBlocks/EventBus/EventBusServiceBus/GlobalUsings.cs index b0465794f..73eb45c1f 100644 --- a/src/BuildingBlocks/EventBus/EventBusServiceBus/GlobalUsings.cs +++ b/src/BuildingBlocks/EventBus/EventBusServiceBus/GlobalUsings.cs @@ -1,9 +1,5 @@ global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; -global using static Microsoft.eShopOnContainers.BuildingBlocks.EventBus.InMemoryEventBusSubscriptionsManager; -global using System.Collections.Generic; -global using System.Linq; -global using System.Text.Json.Serialization; global using System.Threading.Tasks; global using System; global using Autofac; @@ -13,7 +9,6 @@ global using System.Text; global using System.Text.Json; global using Azure.Messaging.ServiceBus; global using Azure.Messaging.ServiceBus.Administration; -global using System; diff --git a/src/Services/Basket/Basket.API/GlobalUsings.cs b/src/Services/Basket/Basket.API/GlobalUsings.cs index b2e13ab17..73978e20c 100644 --- a/src/Services/Basket/Basket.API/GlobalUsings.cs +++ b/src/Services/Basket/Basket.API/GlobalUsings.cs @@ -1,62 +1,59 @@ -global using Autofac.Extensions.DependencyInjection; -global using Autofac; -global using Azure.Core; -global using Azure.Identity; -global using Basket.API.Infrastructure.ActionResults; -global using Basket.API.Infrastructure.Exceptions; -global using Basket.API.Infrastructure.Filters; -global using Basket.API.Infrastructure.Middlewares; -global using Basket.API.IntegrationEvents.EventHandling; -global using Basket.API.IntegrationEvents.Events; -global using Basket.API.Model; -global using Grpc.Core; -global using GrpcBasket; -global using HealthChecks.UI.Client; -global using Microsoft.AspNetCore.Authentication.JwtBearer; -global using Microsoft.AspNetCore.Authorization; -global using Microsoft.AspNetCore.Builder; -global using Microsoft.AspNetCore.Diagnostics.HealthChecks; -global using Microsoft.AspNetCore.Hosting; -global using Microsoft.AspNetCore.Http.Features; -global using Microsoft.AspNetCore.Http; -global using Microsoft.AspNetCore.Mvc.Authorization; -global using Microsoft.AspNetCore.Mvc.Filters; -global using Microsoft.AspNetCore.Mvc; -global using Microsoft.AspNetCore.Server.Kestrel.Core; -global using Microsoft.AspNetCore; -global using Azure.Messaging.ServiceBus; -global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; -global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; -global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus; -global using Microsoft.eShopOnContainers.BuildingBlocks.EventBusRabbitMQ; -global using Microsoft.eShopOnContainers.BuildingBlocks.EventBusServiceBus; -global using Microsoft.eShopOnContainers.Services.Basket.API.Controllers; -global using Microsoft.eShopOnContainers.Services.Basket.API.Infrastructure.Repositories; -global using Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.EventHandling; -global using Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.Events; -global using Microsoft.eShopOnContainers.Services.Basket.API.Model; -global using Microsoft.eShopOnContainers.Services.Basket.API.Services; -global using Microsoft.eShopOnContainers.Services.Basket.API; -global using Microsoft.Extensions.Configuration; -global using Microsoft.Extensions.DependencyInjection; -global using Microsoft.Extensions.Diagnostics.HealthChecks; -global using Microsoft.Extensions.Hosting; -global using Microsoft.Extensions.Logging; -global using Microsoft.Extensions.Options; -global using Microsoft.OpenApi.Models; -global using RabbitMQ.Client; -global using Serilog.Context; -global using Serilog; -global using StackExchange.Redis; -global using Swashbuckle.AspNetCore.SwaggerGen; -global using System.Collections.Generic; -global using System.ComponentModel.DataAnnotations; -global using System.IdentityModel.Tokens.Jwt; -global using System.IO; -global using System.Linq; -global using System.Net; -global using System.Security.Claims; -global using System.Text.Json; -global using System.Threading.Tasks; -global using System; -global using Microsoft.IdentityModel.Tokens; \ No newline at end of file +global using Autofac.Extensions.DependencyInjection; +global using Autofac; +global using Azure.Core; +global using Azure.Identity; +global using Basket.API.Infrastructure.ActionResults; +global using Basket.API.Infrastructure.Exceptions; +global using Basket.API.Infrastructure.Filters; +global using Basket.API.Infrastructure.Middlewares; +global using Basket.API.IntegrationEvents.EventHandling; +global using Basket.API.IntegrationEvents.Events; +global using Basket.API.Model; +global using Grpc.Core; +global using GrpcBasket; +global using HealthChecks.UI.Client; +global using Microsoft.AspNetCore.Authorization; +global using Microsoft.AspNetCore.Builder; +global using Microsoft.AspNetCore.Diagnostics.HealthChecks; +global using Microsoft.AspNetCore.Hosting; +global using Microsoft.AspNetCore.Http.Features; +global using Microsoft.AspNetCore.Http; +global using Microsoft.AspNetCore.Mvc.Authorization; +global using Microsoft.AspNetCore.Mvc.Filters; +global using Microsoft.AspNetCore.Mvc; +global using Microsoft.AspNetCore.Server.Kestrel.Core; +global using Microsoft.AspNetCore; +global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; +global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; +global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus; +global using Microsoft.eShopOnContainers.BuildingBlocks.EventBusRabbitMQ; +global using Microsoft.eShopOnContainers.BuildingBlocks.EventBusServiceBus; +global using Microsoft.eShopOnContainers.Services.Basket.API.Controllers; +global using Microsoft.eShopOnContainers.Services.Basket.API.Infrastructure.Repositories; +global using Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.EventHandling; +global using Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.Events; +global using Microsoft.eShopOnContainers.Services.Basket.API.Model; +global using Microsoft.eShopOnContainers.Services.Basket.API.Services; +global using Microsoft.eShopOnContainers.Services.Basket.API; +global using Microsoft.Extensions.Configuration; +global using Microsoft.Extensions.DependencyInjection; +global using Microsoft.Extensions.Diagnostics.HealthChecks; +global using Microsoft.Extensions.Hosting; +global using Microsoft.Extensions.Logging; +global using Microsoft.Extensions.Options; +global using Microsoft.OpenApi.Models; +global using RabbitMQ.Client; +global using Serilog.Context; +global using Serilog; +global using StackExchange.Redis; +global using Swashbuckle.AspNetCore.SwaggerGen; +global using System.Collections.Generic; +global using System.ComponentModel.DataAnnotations; +global using System.IdentityModel.Tokens.Jwt; +global using System.IO; +global using System.Linq; +global using System.Net; +global using System.Security.Claims; +global using System.Text.Json; +global using System.Threading.Tasks; +global using System; diff --git a/src/Services/Basket/Basket.API/Startup.cs b/src/Services/Basket/Basket.API/Startup.cs index 89b8934e9..a03ebda9a 100644 --- a/src/Services/Basket/Basket.API/Startup.cs +++ b/src/Services/Basket/Basket.API/Startup.cs @@ -1,6 +1,3 @@ -using Microsoft.AspNetCore.Authentication.Cookies; -using Microsoft.AspNetCore.Authentication.OpenIdConnect; - namespace Microsoft.eShopOnContainers.Services.Basket.API; public class Startup { diff --git a/src/Services/Basket/Basket.UnitTests/GlobalUsings.cs b/src/Services/Basket/Basket.UnitTests/GlobalUsings.cs index 6e5443b74..62eb6d21a 100644 --- a/src/Services/Basket/Basket.UnitTests/GlobalUsings.cs +++ b/src/Services/Basket/Basket.UnitTests/GlobalUsings.cs @@ -4,7 +4,6 @@ global using Microsoft.AspNetCore.Http; global using Microsoft.AspNetCore.Mvc; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; global using Microsoft.eShopOnContainers.Services.Basket.API.Controllers; -global using Microsoft.eShopOnContainers.Services.Basket.API.Model; global using Microsoft.Extensions.Logging; global using Moq; global using System; diff --git a/src/Services/Catalog/Catalog.API/Catalog.API.csproj b/src/Services/Catalog/Catalog.API/Catalog.API.csproj index f50fca5ff..84d537d20 100644 --- a/src/Services/Catalog/Catalog.API/Catalog.API.csproj +++ b/src/Services/Catalog/Catalog.API/Catalog.API.csproj @@ -57,7 +57,6 @@ - diff --git a/src/Services/Catalog/Catalog.API/GlobalUsings.cs b/src/Services/Catalog/Catalog.API/GlobalUsings.cs index 48641cc80..278e9408a 100644 --- a/src/Services/Catalog/Catalog.API/GlobalUsings.cs +++ b/src/Services/Catalog/Catalog.API/GlobalUsings.cs @@ -9,7 +9,7 @@ global using Microsoft.eShopOnContainers.Services.Catalog.API.IntegrationEvents; global using Grpc.Core; global using Microsoft.AspNetCore.Hosting; global using Microsoft.AspNetCore.Http; -global using Microsoft.AspNetCore.Builder; +global using Microsoft.AspNetCore.Builder; global using Microsoft.AspNetCore.Mvc.Filters; global using Microsoft.AspNetCore.Mvc; global using Microsoft.AspNetCore.Server.Kestrel.Core; @@ -52,7 +52,6 @@ global using System; global using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Filters; global using HealthChecks.UI.Client; global using Microsoft.AspNetCore.Diagnostics.HealthChecks; -global using Azure.Messaging.ServiceBus; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBusRabbitMQ; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBusServiceBus; diff --git a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContext.cs b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContext.cs index cf152f40f..935039d91 100644 --- a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContext.cs +++ b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContext.cs @@ -1,6 +1,4 @@ -using Microsoft.eShopOnContainers.Services.Catalog.API.Model; - -namespace Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure; +namespace Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure; public class CatalogContext : DbContext { diff --git a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs index 4e3a0f6e0..c0c61fe9e 100644 --- a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs +++ b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs @@ -1,6 +1,4 @@ -using Microsoft.eShopOnContainers.Services.Catalog.API.Model; - -namespace Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure; +namespace Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure; public class CatalogContextSeed { diff --git a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170314083211_AddEventTable.cs b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170314083211_AddEventTable.cs index 953797a75..fb500fc6e 100644 --- a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170314083211_AddEventTable.cs +++ b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170314083211_AddEventTable.cs @@ -1,5 +1,4 @@ using Microsoft.EntityFrameworkCore.Migrations; -using System; namespace Catalog.API.Infrastructure.Migrations { diff --git a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170316012921_RefactoringToIntegrationEventLog.cs b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170316012921_RefactoringToIntegrationEventLog.cs index a6c69efa3..a86450fc8 100644 --- a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170316012921_RefactoringToIntegrationEventLog.cs +++ b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170316012921_RefactoringToIntegrationEventLog.cs @@ -1,5 +1,4 @@ using Microsoft.EntityFrameworkCore.Migrations; -using System; namespace Catalog.API.Infrastructure.Migrations { diff --git a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170322124244_RemoveIntegrationEventLogs.cs b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170322124244_RemoveIntegrationEventLogs.cs index 392580d00..aa8b0d765 100644 --- a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170322124244_RemoveIntegrationEventLogs.cs +++ b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/20170322124244_RemoveIntegrationEventLogs.cs @@ -1,5 +1,4 @@ using Microsoft.EntityFrameworkCore.Migrations; -using System; namespace Catalog.API.Infrastructure.Migrations { diff --git a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/CatalogContextModelSnapshot.cs b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/CatalogContextModelSnapshot.cs index 455e87ec9..bc5fecc6e 100644 --- a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/CatalogContextModelSnapshot.cs +++ b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogMigrations/CatalogContextModelSnapshot.cs @@ -1,7 +1,5 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure; namespace Catalog.API.Infrastructure.Migrations { diff --git a/src/Services/Catalog/Catalog.API/Infrastructure/IntegrationEventMigrations/20170322145434_IntegrationEventInitial.cs b/src/Services/Catalog/Catalog.API/Infrastructure/IntegrationEventMigrations/20170322145434_IntegrationEventInitial.cs index 5f7ea0c73..7b8e18395 100644 --- a/src/Services/Catalog/Catalog.API/Infrastructure/IntegrationEventMigrations/20170322145434_IntegrationEventInitial.cs +++ b/src/Services/Catalog/Catalog.API/Infrastructure/IntegrationEventMigrations/20170322145434_IntegrationEventInitial.cs @@ -1,5 +1,4 @@ using Microsoft.EntityFrameworkCore.Migrations; -using System; namespace Catalog.API.Migrations { diff --git a/src/Services/Catalog/Catalog.API/Infrastructure/IntegrationEventMigrations/IntegrationEventLogContextDesignTimeFactory.cs b/src/Services/Catalog/Catalog.API/Infrastructure/IntegrationEventMigrations/IntegrationEventLogContextDesignTimeFactory.cs index 3841e3a20..3195d9714 100644 --- a/src/Services/Catalog/Catalog.API/Infrastructure/IntegrationEventMigrations/IntegrationEventLogContextDesignTimeFactory.cs +++ b/src/Services/Catalog/Catalog.API/Infrastructure/IntegrationEventMigrations/IntegrationEventLogContextDesignTimeFactory.cs @@ -1,8 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Design; -using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF; - -namespace Catalog.API.Infrastructure.IntegrationEventMigrations +namespace Catalog.API.Infrastructure.IntegrationEventMigrations { public class IntegrationEventLogContextDesignTimeFactory : IDesignTimeDbContextFactory { diff --git a/src/Services/Identity/Identity.API/Configuration/Config.cs b/src/Services/Identity/Identity.API/Configuration/Config.cs index a8f3b1a40..066cbdf2a 100644 --- a/src/Services/Identity/Identity.API/Configuration/Config.cs +++ b/src/Services/Identity/Identity.API/Configuration/Config.cs @@ -1,6 +1,4 @@ -using Duende.IdentityServer.Models; - -namespace Microsoft.eShopOnContainers.Services.Identity.API.Configuration +namespace Microsoft.eShopOnContainers.Services.Identity.API.Configuration { public class Config { diff --git a/src/Services/Identity/Identity.API/Data/Migrations/20210914100206_InitialMigration.cs b/src/Services/Identity/Identity.API/Data/Migrations/20210914100206_InitialMigration.cs index e0933a52e..c6a89ab73 100644 --- a/src/Services/Identity/Identity.API/Data/Migrations/20210914100206_InitialMigration.cs +++ b/src/Services/Identity/Identity.API/Data/Migrations/20210914100206_InitialMigration.cs @@ -1,7 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Microsoft.eShopOnContainers.Services.Identity.API.Data.Migrations +namespace Microsoft.eShopOnContainers.Services.Identity.API.Data.Migrations { public partial class InitialMigration : Migration { diff --git a/src/Services/Identity/Identity.API/GlobalUsings.cs b/src/Services/Identity/Identity.API/GlobalUsings.cs index c21ec0a02..bbbe458c9 100644 --- a/src/Services/Identity/Identity.API/GlobalUsings.cs +++ b/src/Services/Identity/Identity.API/GlobalUsings.cs @@ -1,6 +1,3 @@ - -global using System.IO.Compression; -global using Autofac.Extensions.DependencyInjection; global using Azure.Core; global using Azure.Identity; global using HealthChecks.UI.Client; @@ -23,8 +20,6 @@ global using Microsoft.AspNetCore.Identity; global using Microsoft.AspNetCore.Mvc.Rendering; global using Microsoft.AspNetCore.Mvc; global using Microsoft.AspNetCore.Mvc.Filters; -global using Microsoft.AspNetCore; -global using Microsoft.EntityFrameworkCore.Design; global using Microsoft.EntityFrameworkCore.Infrastructure; global using Microsoft.EntityFrameworkCore.Metadata; global using Microsoft.EntityFrameworkCore.Migrations; @@ -33,8 +28,6 @@ global using Microsoft.EntityFrameworkCore; global using Microsoft.eShopOnContainers.Services.Identity.API; global using Microsoft.eShopOnContainers.Services.Identity.API.Data; global using Microsoft.eShopOnContainers.Services.Identity.API.Configuration; -global using Microsoft.eShopOnContainers.Services.Identity.API.Devspaces; -global using Microsoft.eShopOnContainers.Services.Identity.API.Models.AccountViewModels; global using Microsoft.eShopOnContainers.Services.Identity.API.Models; global using Microsoft.eShopOnContainers.Services.Identity.API.Services; global using Microsoft.Extensions.Configuration; @@ -44,16 +37,13 @@ global using Microsoft.Extensions.Hosting; global using Microsoft.Extensions.Logging; global using Microsoft.Extensions.Options; global using Polly; -global using StackExchange.Redis; global using System.Collections.Generic; global using System.ComponentModel.DataAnnotations; global using System.Data.SqlClient; global using System.IdentityModel.Tokens.Jwt; global using System.IO; global using System.Linq; -global using System.Reflection; global using System.Security.Claims; -global using System.Security.Cryptography.X509Certificates; global using System.Text.RegularExpressions; global using System.Threading.Tasks; global using System; diff --git a/src/Services/Identity/Identity.API/Models/ConsentViewModels/ConsentInputModel.cs b/src/Services/Identity/Identity.API/Models/ConsentViewModels/ConsentInputModel.cs index 38592c36f..6b0c22d8f 100644 --- a/src/Services/Identity/Identity.API/Models/ConsentViewModels/ConsentInputModel.cs +++ b/src/Services/Identity/Identity.API/Models/ConsentViewModels/ConsentInputModel.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace Microsoft.eShopOnContainers.Services.Identity.API.Models.ConsentViewModels +namespace Microsoft.eShopOnContainers.Services.Identity.API.Models.ConsentViewModels { public class ConsentInputModel { diff --git a/src/Services/Identity/Identity.API/Models/ConsentViewModels/ConsentViewModel.cs b/src/Services/Identity/Identity.API/Models/ConsentViewModels/ConsentViewModel.cs index 8f3b7594c..855e9a202 100644 --- a/src/Services/Identity/Identity.API/Models/ConsentViewModels/ConsentViewModel.cs +++ b/src/Services/Identity/Identity.API/Models/ConsentViewModels/ConsentViewModel.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace Microsoft.eShopOnContainers.Services.Identity.API.Models.ConsentViewModels +namespace Microsoft.eShopOnContainers.Services.Identity.API.Models.ConsentViewModels { public class ConsentViewModel : ConsentInputModel { diff --git a/src/Services/Identity/Identity.API/Models/ConsentViewModels/ProcessConsentResult.cs b/src/Services/Identity/Identity.API/Models/ConsentViewModels/ProcessConsentResult.cs index cecfc6898..88ef60e1a 100644 --- a/src/Services/Identity/Identity.API/Models/ConsentViewModels/ProcessConsentResult.cs +++ b/src/Services/Identity/Identity.API/Models/ConsentViewModels/ProcessConsentResult.cs @@ -1,6 +1,4 @@ -using Duende.IdentityServer.Models; - -namespace Microsoft.eShopOnContainers.Services.Identity.API.Models.ConsentViewModels +namespace Microsoft.eShopOnContainers.Services.Identity.API.Models.ConsentViewModels { public class ProcessConsentResult { diff --git a/src/Services/Identity/Identity.API/Quickstart/Account/AccountController.cs b/src/Services/Identity/Identity.API/Quickstart/Account/AccountController.cs index f14c99896..63fa604a5 100644 --- a/src/Services/Identity/Identity.API/Quickstart/Account/AccountController.cs +++ b/src/Services/Identity/Identity.API/Quickstart/Account/AccountController.cs @@ -1,13 +1,6 @@ // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -using Duende.IdentityServer.Events; -using Duende.IdentityServer.Extensions; -using Duende.IdentityServer.Stores; -using Microsoft.AspNetCore.Authentication; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; - namespace IdentityServerHost.Quickstart.UI { [SecurityHeaders] diff --git a/src/Services/Identity/Identity.API/Quickstart/Home/HomeController.cs b/src/Services/Identity/Identity.API/Quickstart/Home/HomeController.cs index 6110df1f8..27f4d73cc 100644 --- a/src/Services/Identity/Identity.API/Quickstart/Home/HomeController.cs +++ b/src/Services/Identity/Identity.API/Quickstart/Home/HomeController.cs @@ -1,10 +1,6 @@ // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. - -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; - namespace IdentityServerHost.Quickstart.UI { [SecurityHeaders] diff --git a/src/Services/Identity/Identity.API/SeedData.cs b/src/Services/Identity/Identity.API/SeedData.cs index ece8c6d54..1ce95871f 100644 --- a/src/Services/Identity/Identity.API/SeedData.cs +++ b/src/Services/Identity/Identity.API/SeedData.cs @@ -1,6 +1,3 @@ -using System.Threading.Tasks; -using System; - namespace Microsoft.eShopOnContainers.Services.Identity.API; public class SeedData diff --git a/src/Services/Ordering/Ordering.API/Application/DomainEventHandlers/OrderCancelled/OrderCancelledDomainEventHandler.cs b/src/Services/Ordering/Ordering.API/Application/DomainEventHandlers/OrderCancelled/OrderCancelledDomainEventHandler.cs index dbd8abceb..dd954c2ff 100644 --- a/src/Services/Ordering/Ordering.API/Application/DomainEventHandlers/OrderCancelled/OrderCancelledDomainEventHandler.cs +++ b/src/Services/Ordering/Ordering.API/Application/DomainEventHandlers/OrderCancelled/OrderCancelledDomainEventHandler.cs @@ -1,6 +1,4 @@ -using Microsoft.eShopOnContainers.Services.Ordering.Domain.Events; - -namespace Microsoft.eShopOnContainers.Services.Ordering.API.Application.DomainEventHandlers.OrderCancelled; +namespace Microsoft.eShopOnContainers.Services.Ordering.API.Application.DomainEventHandlers.OrderCancelled; public class OrderCancelledDomainEventHandler : INotificationHandler diff --git a/src/Services/Ordering/Ordering.API/GlobalUsings.cs b/src/Services/Ordering/Ordering.API/GlobalUsings.cs index 434ef8273..67ab88d35 100644 --- a/src/Services/Ordering/Ordering.API/GlobalUsings.cs +++ b/src/Services/Ordering/Ordering.API/GlobalUsings.cs @@ -20,7 +20,6 @@ global using Microsoft.AspNetCore.Mvc.Filters; global using Microsoft.AspNetCore.Mvc; global using Microsoft.AspNetCore.Server.Kestrel.Core; global using Microsoft.AspNetCore; -global using Azure.Messaging.ServiceBus; global using Microsoft.EntityFrameworkCore.Design; global using Microsoft.EntityFrameworkCore; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; @@ -34,8 +33,6 @@ global using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF; global using Microsoft.eShopOnContainers.Services.Ordering.API.Application.Behaviors; global using Microsoft.eShopOnContainers.Services.Ordering.API.Application.Commands; global using Microsoft.eShopOnContainers.Services.Ordering.API.Application.DomainEventHandlers.OrderStartedEvent; -global using Microsoft.eShopOnContainers.Services.Ordering.API.Application.DomainEventHandlers.OrderStockConfirmed; -global using Microsoft.eShopOnContainers.Services.Ordering.API.Application.IntegrationEvents.EventHandling; global using Microsoft.eShopOnContainers.Services.Ordering.API.Infrastructure.AutofacModules; global using Microsoft.eShopOnContainers.Services.Ordering.API.Application.IntegrationEvents.Events; global using Microsoft.eShopOnContainers.Services.Ordering.API.Application.IntegrationEvents; @@ -83,5 +80,3 @@ global using System.Runtime.Serialization; global using System.Threading.Tasks; global using System.Threading; global using System; -global using System.Collections.Generic; -global using Microsoft.IdentityModel.Tokens; diff --git a/src/Services/Ordering/Ordering.API/Infrastructure/IntegrationEventMigrations/20170330131634_IntegrationEventInitial.cs b/src/Services/Ordering/Ordering.API/Infrastructure/IntegrationEventMigrations/20170330131634_IntegrationEventInitial.cs index a6bbd8765..2fc74e7a6 100644 --- a/src/Services/Ordering/Ordering.API/Infrastructure/IntegrationEventMigrations/20170330131634_IntegrationEventInitial.cs +++ b/src/Services/Ordering/Ordering.API/Infrastructure/IntegrationEventMigrations/20170330131634_IntegrationEventInitial.cs @@ -1,5 +1,4 @@ using Microsoft.EntityFrameworkCore.Migrations; -using System; namespace Ordering.API.Infrastructure.IntegrationEventMigrations { diff --git a/src/Services/Ordering/Ordering.API/Infrastructure/IntegrationEventMigrations/IntegrationEventLogContextDesignTimeFactory.cs b/src/Services/Ordering/Ordering.API/Infrastructure/IntegrationEventMigrations/IntegrationEventLogContextDesignTimeFactory.cs index 3841e3a20..3195d9714 100644 --- a/src/Services/Ordering/Ordering.API/Infrastructure/IntegrationEventMigrations/IntegrationEventLogContextDesignTimeFactory.cs +++ b/src/Services/Ordering/Ordering.API/Infrastructure/IntegrationEventMigrations/IntegrationEventLogContextDesignTimeFactory.cs @@ -1,8 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Design; -using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF; - -namespace Catalog.API.Infrastructure.IntegrationEventMigrations +namespace Catalog.API.Infrastructure.IntegrationEventMigrations { public class IntegrationEventLogContextDesignTimeFactory : IDesignTimeDbContextFactory { diff --git a/src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170208181933_Initial.cs b/src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170208181933_Initial.cs index a489f0e28..7d9a3c840 100644 --- a/src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170208181933_Initial.cs +++ b/src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170208181933_Initial.cs @@ -1,6 +1,5 @@ using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; -using System; namespace Ordering.API.Migrations { diff --git a/src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170303085729_RequestsTable.cs b/src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170303085729_RequestsTable.cs index e0fb2dedf..157061fcf 100644 --- a/src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170303085729_RequestsTable.cs +++ b/src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170303085729_RequestsTable.cs @@ -1,5 +1,4 @@ using Microsoft.EntityFrameworkCore.Migrations; -using System; namespace Ordering.API.Migrations { diff --git a/src/Services/Ordering/Ordering.API/Startup.cs b/src/Services/Ordering/Ordering.API/Startup.cs index 153f74ea1..2a932dabd 100644 --- a/src/Services/Ordering/Ordering.API/Startup.cs +++ b/src/Services/Ordering/Ordering.API/Startup.cs @@ -1,6 +1,3 @@ -using Microsoft.AspNetCore.Authentication.Cookies; -using Microsoft.AspNetCore.Authentication.OpenIdConnect; - namespace Microsoft.eShopOnContainers.Services.Ordering.API; public class Startup diff --git a/src/Services/Ordering/Ordering.BackgroundTasks/Extensions/CustomExtensionMethods.cs b/src/Services/Ordering/Ordering.BackgroundTasks/Extensions/CustomExtensionMethods.cs index 7010bbae8..bf35a61dc 100644 --- a/src/Services/Ordering/Ordering.BackgroundTasks/Extensions/CustomExtensionMethods.cs +++ b/src/Services/Ordering/Ordering.BackgroundTasks/Extensions/CustomExtensionMethods.cs @@ -1,5 +1,4 @@ using Autofac; -using Azure.Messaging.ServiceBus; using Microsoft.eShopOnContainers.BuildingBlocks.EventBus; using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; using Microsoft.eShopOnContainers.BuildingBlocks.EventBusRabbitMQ; diff --git a/src/Services/Ordering/Ordering.Domain/AggregatesModel/OrderAggregate/Order.cs b/src/Services/Ordering/Ordering.Domain/AggregatesModel/OrderAggregate/Order.cs index 81a67324b..8e452c42f 100644 --- a/src/Services/Ordering/Ordering.Domain/AggregatesModel/OrderAggregate/Order.cs +++ b/src/Services/Ordering/Ordering.Domain/AggregatesModel/OrderAggregate/Order.cs @@ -1,6 +1,4 @@ -using Microsoft.eShopOnContainers.Services.Ordering.Domain.Events; - -namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate; +namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate; public class Order : Entity, IAggregateRoot diff --git a/src/Services/Ordering/Ordering.FunctionalTests/OrderingScenarios.cs b/src/Services/Ordering/Ordering.FunctionalTests/OrderingScenarios.cs index d49f41960..6c7ed17a9 100644 --- a/src/Services/Ordering/Ordering.FunctionalTests/OrderingScenarios.cs +++ b/src/Services/Ordering/Ordering.FunctionalTests/OrderingScenarios.cs @@ -1,8 +1,6 @@ using System.Net; -using System.Net.Http; using System.Text; using System.Text.Json; -using System.Threading.Tasks; using WebMVC.Services.ModelDTOs; using Xunit; diff --git a/src/Services/Ordering/Ordering.Infrastructure/GlobalUsings.cs b/src/Services/Ordering/Ordering.Infrastructure/GlobalUsings.cs index 72667e11d..d05654f66 100644 --- a/src/Services/Ordering/Ordering.Infrastructure/GlobalUsings.cs +++ b/src/Services/Ordering/Ordering.Infrastructure/GlobalUsings.cs @@ -7,7 +7,6 @@ global using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesMode global using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate; global using Microsoft.eShopOnContainers.Services.Ordering.Domain.Seedwork; global using Microsoft.eShopOnContainers.Services.Ordering.Infrastructure.Idempotency; -global using Microsoft.eShopOnContainers.Services.Ordering.Infrastructure; global using Microsoft.eShopOnContainers.Services.Ordering.Domain.Exceptions; global using Microsoft.eShopOnContainers.Services.Ordering.Infrastructure.EntityConfigurations; global using System.Data; diff --git a/src/Services/Ordering/Ordering.SignalrHub/GlobalUsings.cs b/src/Services/Ordering/Ordering.SignalrHub/GlobalUsings.cs index 5cdca9345..61640da79 100644 --- a/src/Services/Ordering/Ordering.SignalrHub/GlobalUsings.cs +++ b/src/Services/Ordering/Ordering.SignalrHub/GlobalUsings.cs @@ -8,7 +8,6 @@ global using Microsoft.AspNetCore.Diagnostics.HealthChecks; global using Microsoft.AspNetCore.Hosting; global using Microsoft.AspNetCore.SignalR; global using Microsoft.AspNetCore; -global using Azure.Messaging.ServiceBus; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus; diff --git a/src/Services/Ordering/Ordering.SignalrHub/Startup.cs b/src/Services/Ordering/Ordering.SignalrHub/Startup.cs index 608220bcd..b91350eb6 100644 --- a/src/Services/Ordering/Ordering.SignalrHub/Startup.cs +++ b/src/Services/Ordering/Ordering.SignalrHub/Startup.cs @@ -1,6 +1,3 @@ -using Microsoft.AspNetCore.Authentication.Cookies; -using Microsoft.AspNetCore.Authentication.OpenIdConnect; - namespace Microsoft.eShopOnContainers.Services.Ordering.SignalrHub; public class Startup diff --git a/src/Services/Ordering/Ordering.UnitTests/GlobalUsings.cs b/src/Services/Ordering/Ordering.UnitTests/GlobalUsings.cs index 9fa77aef7..02e80ea8f 100644 --- a/src/Services/Ordering/Ordering.UnitTests/GlobalUsings.cs +++ b/src/Services/Ordering/Ordering.UnitTests/GlobalUsings.cs @@ -10,11 +10,8 @@ global using System.Threading.Tasks; global using Xunit; global using Microsoft.eShopOnContainers.Services.Ordering.API.Infrastructure.Services; global using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.BuyerAggregate; -global using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate; global using System.Threading; -global using global::Ordering.API.Application.IntegrationEvents; global using Microsoft.AspNetCore.Mvc; -global using Microsoft.eShopOnContainers.Services.Ordering.API.Application.Queries; global using Microsoft.eShopOnContainers.Services.Ordering.API.Controllers; global using System.Linq; global using Microsoft.eShopOnContainers.Services.Ordering.Domain.SeedWork; diff --git a/src/Services/Payment/Payment.API/GlobalUsings.cs b/src/Services/Payment/Payment.API/GlobalUsings.cs index e87eb53bb..fb2a84e1b 100644 --- a/src/Services/Payment/Payment.API/GlobalUsings.cs +++ b/src/Services/Payment/Payment.API/GlobalUsings.cs @@ -4,9 +4,8 @@ global using Azure.Core; global using Azure.Identity; global using HealthChecks.UI.Client; global using Microsoft.AspNetCore.Diagnostics.HealthChecks; -global using Microsoft.AspNetCore.Builder; +global using Microsoft.AspNetCore.Builder; global using Microsoft.AspNetCore; -global using Azure.Messaging.ServiceBus; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus; diff --git a/src/Services/Webhooks/Webhooks.API/GlobalUsings.cs b/src/Services/Webhooks/Webhooks.API/GlobalUsings.cs index 90840639b..a028e2aab 100644 --- a/src/Services/Webhooks/Webhooks.API/GlobalUsings.cs +++ b/src/Services/Webhooks/Webhooks.API/GlobalUsings.cs @@ -11,7 +11,6 @@ global using Microsoft.AspNetCore.Http; global using Microsoft.AspNetCore.Mvc.Filters; global using Microsoft.AspNetCore.Mvc; global using Microsoft.AspNetCore; -global using Azure.Messaging.ServiceBus; global using Microsoft.EntityFrameworkCore.Design; global using Microsoft.EntityFrameworkCore; global using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; @@ -48,4 +47,3 @@ global using Webhooks.API.IntegrationEvents; global using Webhooks.API.Model; global using Webhooks.API.Services; global using Webhooks.API; -global using Microsoft.IdentityModel.Tokens; diff --git a/src/Services/Webhooks/Webhooks.API/Migrations/20190118091148_Initial.cs b/src/Services/Webhooks/Webhooks.API/Migrations/20190118091148_Initial.cs index 06a8a16c1..a8b5123b8 100644 --- a/src/Services/Webhooks/Webhooks.API/Migrations/20190118091148_Initial.cs +++ b/src/Services/Webhooks/Webhooks.API/Migrations/20190118091148_Initial.cs @@ -1,6 +1,5 @@ using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; -using System; namespace Webhooks.API.Migrations { diff --git a/src/Services/Webhooks/Webhooks.API/Startup.cs b/src/Services/Webhooks/Webhooks.API/Startup.cs index 54ed81de8..c50a8bba5 100644 --- a/src/Services/Webhooks/Webhooks.API/Startup.cs +++ b/src/Services/Webhooks/Webhooks.API/Startup.cs @@ -1,6 +1,3 @@ -using Microsoft.AspNetCore.Authentication.Cookies; -using Microsoft.AspNetCore.Authentication.OpenIdConnect; - namespace Webhooks.API; public class Startup { diff --git a/src/Tests/Services/Application.FunctionalTests/GlobalUsings.cs b/src/Tests/Services/Application.FunctionalTests/GlobalUsings.cs index 5bacd265b..dd46c8aca 100644 --- a/src/Tests/Services/Application.FunctionalTests/GlobalUsings.cs +++ b/src/Tests/Services/Application.FunctionalTests/GlobalUsings.cs @@ -10,9 +10,7 @@ global using System.IO; global using System.Reflection; global using FunctionalTests.Middleware; global using Microsoft.AspNetCore.Builder; -global using Microsoft.eShopOnContainers.Services.Basket.API; global using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF; -global using Microsoft.eShopOnContainers.Services.Catalog.API; global using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure; global using Microsoft.Extensions.DependencyInjection; global using Microsoft.Extensions.Logging; @@ -31,5 +29,3 @@ global using Microsoft.eShopOnContainers.Services.Ordering.API; global using Microsoft.eShopOnContainers.Services.Ordering.API.Infrastructure; global using Microsoft.eShopOnContainers.Services.Ordering.Infrastructure; global using FunctionalTests.Services.Catalog; -global using Microsoft.eShopOnContainers.Services.Catalog.API.Model; -global using Microsoft.eShopOnContainers.Services.Catalog.API.ViewModel; \ No newline at end of file diff --git a/src/Web/WebMVC/globalusings.cs b/src/Web/WebMVC/globalusings.cs index 3d8dbd8e0..8fb1ec0c2 100644 --- a/src/Web/WebMVC/globalusings.cs +++ b/src/Web/WebMVC/globalusings.cs @@ -1,7 +1,6 @@ global using Devspaces.Support; global using HealthChecks.UI.Client; global using Microsoft.AspNetCore.Authentication.Cookies; -global using Microsoft.AspNetCore.Authentication.JwtBearer; global using Microsoft.AspNetCore.Authentication.OpenIdConnect; global using Microsoft.AspNetCore.Authentication; global using Microsoft.AspNetCore.Authorization; diff --git a/src/Web/WebSPA/GlobalUsings.cs b/src/Web/WebSPA/GlobalUsings.cs index eb6145877..0b82464fd 100644 --- a/src/Web/WebSPA/GlobalUsings.cs +++ b/src/Web/WebSPA/GlobalUsings.cs @@ -23,5 +23,3 @@ global using WebSPA.Infrastructure; global using Microsoft.Extensions.Options; global using System.IO.Compression; global using System.Linq; -global using System.Collections.Generic; -global using System.Threading.Tasks; diff --git a/src/Web/WebStatus/GlobalUsings.cs b/src/Web/WebStatus/GlobalUsings.cs index e97afcc85..986d4ee76 100644 --- a/src/Web/WebStatus/GlobalUsings.cs +++ b/src/Web/WebStatus/GlobalUsings.cs @@ -3,21 +3,16 @@ global using Microsoft.Extensions.Configuration; global using System.Linq; global using Microsoft.AspNetCore; global using Microsoft.AspNetCore.Hosting; -global using Microsoft.Extensions.Configuration; global using Serilog; global using System; global using System.Collections.Generic; global using System.IO; -global using System.Linq; global using System.Reflection; global using WebStatus; global using Azure.Identity; global using Azure.Core; global using Microsoft.AspNetCore.Builder; global using Microsoft.AspNetCore.Diagnostics.HealthChecks; -global using Microsoft.AspNetCore.Hosting; -global using Microsoft.AspNetCore.Mvc; -global using Microsoft.Extensions.Configuration; global using Microsoft.Extensions.DependencyInjection; global using Microsoft.Extensions.Diagnostics.HealthChecks; global using Microsoft.Extensions.Hosting; diff --git a/src/Web/WebhookClient/Pages/Error.cshtml.cs b/src/Web/WebhookClient/Pages/Error.cshtml.cs index 607d14db1..b0ecf830d 100644 --- a/src/Web/WebhookClient/Pages/Error.cshtml.cs +++ b/src/Web/WebhookClient/Pages/Error.cshtml.cs @@ -1,4 +1,3 @@ -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using System.Diagnostics; diff --git a/src/Web/WebhookClient/Pages/RegisterWebhook.cshtml.cs b/src/Web/WebhookClient/Pages/RegisterWebhook.cshtml.cs index 7a0ad5fdc..b564bf781 100644 --- a/src/Web/WebhookClient/Pages/RegisterWebhook.cshtml.cs +++ b/src/Web/WebhookClient/Pages/RegisterWebhook.cshtml.cs @@ -1,13 +1,5 @@ -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; -using Microsoft.Extensions.Options; -using System.Net; -using System.Net.Http; +using Microsoft.AspNetCore.Mvc.RazorPages; using System.Net.Http.Formatting; -using System.Threading.Tasks; -using WebhookClient.Models; -using System.Text.Json; namespace WebhookClient.Pages { diff --git a/src/Web/WebhookClient/Pages/WebhooksList.cshtml.cs b/src/Web/WebhookClient/Pages/WebhooksList.cshtml.cs index c1c8c8012..d47bee0f0 100644 --- a/src/Web/WebhookClient/Pages/WebhooksList.cshtml.cs +++ b/src/Web/WebhookClient/Pages/WebhooksList.cshtml.cs @@ -1,8 +1,4 @@ using Microsoft.AspNetCore.Mvc.RazorPages; -using System.Collections.Generic; -using System.Threading.Tasks; -using WebhookClient.Models; -using WebhookClient.Services; namespace WebhookClient.Pages {