From c61b15d5b1558852765d5e625be4b27d14a13fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20C=C3=A2mara?= <52082556+RafaelJCamara@users.noreply.github.com> Date: Fri, 25 Oct 2024 00:00:09 +0200 Subject: [PATCH] Remove unused using statements. (#1313) Signed-off-by: Rafael Camara --- .../AspNetCore/GrpcServiceSample/Program.cs | 5 --- .../Program.cs | 1 - .../Controllers/ConfigurationController.cs | 4 +-- examples/Client/ConfigurationApi/Program.cs | 1 - examples/Client/ConfigurationApi/Startup.cs | 5 +-- .../Controllers/BindingController.cs | 5 ++- .../Client/DistributedLock/Model/StateData.cs | 3 +- examples/Client/DistributedLock/Program.cs | 5 --- .../InvokeServiceHttpClientExample.cs | 1 - .../Activities/ProcessPaymentActivity.cs | 3 +- .../Communication/ActorInvokeException.cs | 5 --- .../Communication/ActorInvokeExceptionData.cs | 3 -- ...torMessageBodyJsonSerializationProvider.cs | 1 - src/Dapr.Actors/Runtime/ActorStateManager.cs | 1 - .../Runtime/DefaultActorActivatorFactory.cs | 3 -- .../Runtime/DefaultActorTimerManager.cs | 1 - src/Dapr.Actors/Runtime/IActorStateManager.cs | 1 - .../DaprAuthenticationBuilderExtensions.cs | 1 - .../DaprMvcBuilderExtensions.cs | 2 -- src/Dapr.AspNetCore/FromStateAttribute.cs | 1 - src/Dapr.Client/InvocationInterceptor.cs | 2 -- src/Dapr.Client/StartWorkflowResponse.cs | 3 -- src/Dapr.Client/StateOptions.cs | 4 --- src/Dapr.Client/StateTransactionRequest.cs | 2 -- .../SubscribeConfigurationResponse.cs | 3 +- src/Dapr.Client/UnlockResponse.cs | 2 -- .../UnsubscribeConfigurationResponse.cs | 3 +- .../DaprConfigurationStoreSource.cs | 1 - .../DaprSecretStoreConfigurationExtensions.cs | 1 - .../DaprSecretStoreConfigurationSource.cs | 1 - src/Dapr.Workflow/WorkflowLoggingService.cs | 1 - .../AppWebApplicationFactory.cs | 1 - .../DependencyInjectionActorActivatorTests.cs | 2 -- .../Dapr.Actors.Test/ActorCodeBuilderTests.cs | 1 - .../ActorMethodInvocationExceptionTests.cs | 1 - .../ActorProxyOptionsTests.cs | 4 --- .../Dapr.Actors.Test/ActorStateManagerTest.cs | 7 ----- test/Dapr.Actors.Test/ActorUnitTestTests.cs | 2 -- .../DaprFormatTimeSpanTests.cs | 2 -- .../DaprHttpInteractorTest.cs | 2 -- .../Dapr.Actors.Test/DaprStateProviderTest.cs | 7 ----- .../Runtime/ActorRuntimeTests.cs | 1 - .../Runtime/DefaultActorActivatorTests.cs | 2 -- .../ActorIdDataContractSerializationTest.cs | 4 --- .../TimerInfoJsonConverterTest.cs | 1 - .../StateTestClient.cs | 2 -- .../CloudEventsMiddlewareTest.cs | 1 - .../DaprClientBuilderTest.cs | 1 - .../StateEntryApplicationModelProviderTest.cs | 8 ----- test/Dapr.Client.Test/ConfigurationApiTest.cs | 1 - .../DaprClientTest.InvokeMethodAsync.cs | 3 +- test/Dapr.Client.Test/PublishEventApiTest.cs | 1 - test/Dapr.Client.Test/StateApiTest.cs | 2 -- test/Dapr.Client.Test/TypeConvertersTest.cs | 1 - test/Dapr.E2E.Test.App.Grpc/Startup.cs | 31 ++++++++----------- test/Dapr.E2E.Test.App/Actors/StateActor.cs | 1 - .../Controllers/TestController.cs | 2 -- test/Dapr.E2E.Test.App/Startup.cs | 2 -- .../Actors/E2ETests.StateTests.cs | 1 - .../E2ETests.ServiceInvocationTests.cs | 4 --- test/Shared/GrpcUtils.cs | 1 - 61 files changed, 22 insertions(+), 152 deletions(-) diff --git a/examples/AspNetCore/GrpcServiceSample/Program.cs b/examples/AspNetCore/GrpcServiceSample/Program.cs index cd8486447..dbec5ba2c 100644 --- a/examples/AspNetCore/GrpcServiceSample/Program.cs +++ b/examples/AspNetCore/GrpcServiceSample/Program.cs @@ -11,11 +11,6 @@ // limitations under the License. // ------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.Kestrel.Core; using Microsoft.Extensions.Hosting; diff --git a/examples/AspNetCore/SecretStoreConfigurationProviderSample/Program.cs b/examples/AspNetCore/SecretStoreConfigurationProviderSample/Program.cs index 7afb17436..658d6d163 100644 --- a/examples/AspNetCore/SecretStoreConfigurationProviderSample/Program.cs +++ b/examples/AspNetCore/SecretStoreConfigurationProviderSample/Program.cs @@ -18,7 +18,6 @@ using Dapr.Client; using Dapr.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; - using System.Collections.Generic; using System; /// diff --git a/examples/Client/ConfigurationApi/Controllers/ConfigurationController.cs b/examples/Client/ConfigurationApi/Controllers/ConfigurationController.cs index 55bf6df53..9ceb60c0b 100644 --- a/examples/Client/ConfigurationApi/Controllers/ConfigurationController.cs +++ b/examples/Client/ConfigurationApi/Controllers/ConfigurationController.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading; +using System.Collections.Generic; using System.Threading.Tasks; using ControllerSample; using Dapr; diff --git a/examples/Client/ConfigurationApi/Program.cs b/examples/Client/ConfigurationApi/Program.cs index f5218602d..22f12cfae 100644 --- a/examples/Client/ConfigurationApi/Program.cs +++ b/examples/Client/ConfigurationApi/Program.cs @@ -4,7 +4,6 @@ using Dapr.Client; using Dapr.Extensions.Configuration; using System.Collections.Generic; -using System.Threading; namespace ConfigurationApi { diff --git a/examples/Client/ConfigurationApi/Startup.cs b/examples/Client/ConfigurationApi/Startup.cs index db5b921c9..b858b810c 100644 --- a/examples/Client/ConfigurationApi/Startup.cs +++ b/examples/Client/ConfigurationApi/Startup.cs @@ -1,11 +1,8 @@ -using System; -using Dapr.AspNetCore; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Primitives; namespace ConfigurationApi { diff --git a/examples/Client/DistributedLock/Controllers/BindingController.cs b/examples/Client/DistributedLock/Controllers/BindingController.cs index 1edc6aafe..aa4dd1f52 100644 --- a/examples/Client/DistributedLock/Controllers/BindingController.cs +++ b/examples/Client/DistributedLock/Controllers/BindingController.cs @@ -1,6 +1,5 @@ -using System; -using System.Linq; -using System.Text; +using System; +using System.Linq; using System.Text.Json; using System.Threading.Tasks; using Dapr; diff --git a/examples/Client/DistributedLock/Model/StateData.cs b/examples/Client/DistributedLock/Model/StateData.cs index d5c5f6e9a..0ad5d2fd9 100644 --- a/examples/Client/DistributedLock/Model/StateData.cs +++ b/examples/Client/DistributedLock/Model/StateData.cs @@ -1,5 +1,4 @@ -using System; -namespace DistributedLock.Model +namespace DistributedLock.Model { #nullable enable public class StateData diff --git a/examples/Client/DistributedLock/Program.cs b/examples/Client/DistributedLock/Program.cs index ba4d670a7..3080b5b1e 100644 --- a/examples/Client/DistributedLock/Program.cs +++ b/examples/Client/DistributedLock/Program.cs @@ -1,11 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; namespace DistributedLock { diff --git a/examples/Client/ServiceInvocation/InvokeServiceHttpClientExample.cs b/examples/Client/ServiceInvocation/InvokeServiceHttpClientExample.cs index fc1475b8e..72d68096d 100644 --- a/examples/Client/ServiceInvocation/InvokeServiceHttpClientExample.cs +++ b/examples/Client/ServiceInvocation/InvokeServiceHttpClientExample.cs @@ -13,7 +13,6 @@ using System; using System.Net.Http.Json; -using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Dapr.Client; diff --git a/examples/Workflow/WorkflowConsoleApp/Activities/ProcessPaymentActivity.cs b/examples/Workflow/WorkflowConsoleApp/Activities/ProcessPaymentActivity.cs index 1ddb51bbf..4ca39f0ae 100644 --- a/examples/Workflow/WorkflowConsoleApp/Activities/ProcessPaymentActivity.cs +++ b/examples/Workflow/WorkflowConsoleApp/Activities/ProcessPaymentActivity.cs @@ -1,5 +1,4 @@ -using Dapr.Client; -using Dapr.Workflow; +using Dapr.Workflow; using Microsoft.Extensions.Logging; namespace WorkflowConsoleApp.Activities diff --git a/src/Dapr.Actors/Communication/ActorInvokeException.cs b/src/Dapr.Actors/Communication/ActorInvokeException.cs index ac4ea63df..d58ceace8 100644 --- a/src/Dapr.Actors/Communication/ActorInvokeException.cs +++ b/src/Dapr.Actors/Communication/ActorInvokeException.cs @@ -14,12 +14,7 @@ namespace Dapr.Actors { using System; - using System.Globalization; using System.IO; - using System.Runtime.Serialization; - using System.Text; - using System.Xml; - using Dapr.Actors.Resources; using Microsoft.Extensions.Logging; /// diff --git a/src/Dapr.Actors/Communication/ActorInvokeExceptionData.cs b/src/Dapr.Actors/Communication/ActorInvokeExceptionData.cs index b9f1f4d86..6103c79c4 100644 --- a/src/Dapr.Actors/Communication/ActorInvokeExceptionData.cs +++ b/src/Dapr.Actors/Communication/ActorInvokeExceptionData.cs @@ -13,12 +13,9 @@ namespace Dapr.Actors { - using System; using System.IO; using System.Runtime.Serialization; using System.Xml; - using Dapr.Actors; - using Microsoft.Extensions.Logging; [DataContract(Name = "ActorInvokeExceptionData", Namespace = Constants.Namespace)] internal class ActorInvokeExceptionData diff --git a/src/Dapr.Actors/Communication/ActorMessageBodyJsonSerializationProvider.cs b/src/Dapr.Actors/Communication/ActorMessageBodyJsonSerializationProvider.cs index fd35db8e1..062d3c742 100644 --- a/src/Dapr.Actors/Communication/ActorMessageBodyJsonSerializationProvider.cs +++ b/src/Dapr.Actors/Communication/ActorMessageBodyJsonSerializationProvider.cs @@ -18,7 +18,6 @@ namespace Dapr.Actors.Communication using System.IO; using System.Text.Json; using System.Threading.Tasks; - using System.Xml; /// /// This is the implmentation for used by remoting service and client during diff --git a/src/Dapr.Actors/Runtime/ActorStateManager.cs b/src/Dapr.Actors/Runtime/ActorStateManager.cs index 111bb80f4..31ada4433 100644 --- a/src/Dapr.Actors/Runtime/ActorStateManager.cs +++ b/src/Dapr.Actors/Runtime/ActorStateManager.cs @@ -12,7 +12,6 @@ // ------------------------------------------------------------------------ using System; -using System.Collections.Concurrent; using System.Collections.Generic; using System.Globalization; using System.Threading; diff --git a/src/Dapr.Actors/Runtime/DefaultActorActivatorFactory.cs b/src/Dapr.Actors/Runtime/DefaultActorActivatorFactory.cs index c927ebe61..43839c64d 100644 --- a/src/Dapr.Actors/Runtime/DefaultActorActivatorFactory.cs +++ b/src/Dapr.Actors/Runtime/DefaultActorActivatorFactory.cs @@ -11,9 +11,6 @@ // limitations under the License. // ------------------------------------------------------------------------ -using System; -using System.Threading.Tasks; - namespace Dapr.Actors.Runtime { /// diff --git a/src/Dapr.Actors/Runtime/DefaultActorTimerManager.cs b/src/Dapr.Actors/Runtime/DefaultActorTimerManager.cs index b42b432a1..66f94f08e 100644 --- a/src/Dapr.Actors/Runtime/DefaultActorTimerManager.cs +++ b/src/Dapr.Actors/Runtime/DefaultActorTimerManager.cs @@ -15,7 +15,6 @@ using System.Text.Json; using System.Threading.Tasks; using System.IO; -using System.Text; namespace Dapr.Actors.Runtime { diff --git a/src/Dapr.Actors/Runtime/IActorStateManager.cs b/src/Dapr.Actors/Runtime/IActorStateManager.cs index b85fa2a06..8795e28e5 100644 --- a/src/Dapr.Actors/Runtime/IActorStateManager.cs +++ b/src/Dapr.Actors/Runtime/IActorStateManager.cs @@ -17,7 +17,6 @@ namespace Dapr.Actors.Runtime using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; - using Dapr.Actors.Communication; /// /// Represents an interface that exposes methods to manage state of an . diff --git a/src/Dapr.AspNetCore/DaprAuthenticationBuilderExtensions.cs b/src/Dapr.AspNetCore/DaprAuthenticationBuilderExtensions.cs index 0c37dbc8f..e55b2916e 100644 --- a/src/Dapr.AspNetCore/DaprAuthenticationBuilderExtensions.cs +++ b/src/Dapr.AspNetCore/DaprAuthenticationBuilderExtensions.cs @@ -12,7 +12,6 @@ // ------------------------------------------------------------------------ using System; -using Dapr; using Dapr.AspNetCore; namespace Microsoft.AspNetCore.Authentication diff --git a/src/Dapr.AspNetCore/DaprMvcBuilderExtensions.cs b/src/Dapr.AspNetCore/DaprMvcBuilderExtensions.cs index 6195b9c30..6209fea5a 100644 --- a/src/Dapr.AspNetCore/DaprMvcBuilderExtensions.cs +++ b/src/Dapr.AspNetCore/DaprMvcBuilderExtensions.cs @@ -15,8 +15,6 @@ namespace Microsoft.Extensions.DependencyInjection { using System; using System.Linq; - using System.Text.Json; - using Dapr; using Dapr.AspNetCore; using Dapr.Client; using Microsoft.AspNetCore.Mvc; diff --git a/src/Dapr.AspNetCore/FromStateAttribute.cs b/src/Dapr.AspNetCore/FromStateAttribute.cs index 164d7ef09..16299ba07 100644 --- a/src/Dapr.AspNetCore/FromStateAttribute.cs +++ b/src/Dapr.AspNetCore/FromStateAttribute.cs @@ -14,7 +14,6 @@ namespace Microsoft.AspNetCore.Mvc { using System; - using System.ComponentModel; using Dapr; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Dapr.Client/InvocationInterceptor.cs b/src/Dapr.Client/InvocationInterceptor.cs index bf9c8f482..b4ecc4b51 100644 --- a/src/Dapr.Client/InvocationInterceptor.cs +++ b/src/Dapr.Client/InvocationInterceptor.cs @@ -11,8 +11,6 @@ // limitations under the License. // ------------------------------------------------------------------------ -using System; -using System.Threading.Tasks; using Grpc.Core; using Grpc.Core.Interceptors; diff --git a/src/Dapr.Client/StartWorkflowResponse.cs b/src/Dapr.Client/StartWorkflowResponse.cs index 8442fd40e..a927116cb 100644 --- a/src/Dapr.Client/StartWorkflowResponse.cs +++ b/src/Dapr.Client/StartWorkflowResponse.cs @@ -11,9 +11,6 @@ // limitations under the License. // ------------------------------------------------------------------------ -using System; -using System.Collections.Generic; - namespace Dapr.Client { /// diff --git a/src/Dapr.Client/StateOptions.cs b/src/Dapr.Client/StateOptions.cs index 04c878fc0..fa6f2739c 100644 --- a/src/Dapr.Client/StateOptions.cs +++ b/src/Dapr.Client/StateOptions.cs @@ -13,10 +13,6 @@ namespace Dapr.Client { - using System; - using System.Collections.Generic; - using System.Text; - /// /// Options when perfroming state operations with Dapr. /// diff --git a/src/Dapr.Client/StateTransactionRequest.cs b/src/Dapr.Client/StateTransactionRequest.cs index 1e47d9344..756f3069f 100644 --- a/src/Dapr.Client/StateTransactionRequest.cs +++ b/src/Dapr.Client/StateTransactionRequest.cs @@ -14,8 +14,6 @@ namespace Dapr.Client { using System.Collections.Generic; - using System.Threading; - using Dapr.Client; /// /// Represents a single request in in a StateTransaction. diff --git a/src/Dapr.Client/SubscribeConfigurationResponse.cs b/src/Dapr.Client/SubscribeConfigurationResponse.cs index b371bd21c..bea992890 100644 --- a/src/Dapr.Client/SubscribeConfigurationResponse.cs +++ b/src/Dapr.Client/SubscribeConfigurationResponse.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; namespace Dapr.Client { diff --git a/src/Dapr.Client/UnlockResponse.cs b/src/Dapr.Client/UnlockResponse.cs index 62480c8f6..68cc40670 100644 --- a/src/Dapr.Client/UnlockResponse.cs +++ b/src/Dapr.Client/UnlockResponse.cs @@ -11,8 +11,6 @@ // limitations under the License. // ------------------------------------------------------------------------ -using System.Collections.Generic; - namespace Dapr.Client { /// diff --git a/src/Dapr.Client/UnsubscribeConfigurationResponse.cs b/src/Dapr.Client/UnsubscribeConfigurationResponse.cs index 14c973df5..8208efb39 100644 --- a/src/Dapr.Client/UnsubscribeConfigurationResponse.cs +++ b/src/Dapr.Client/UnsubscribeConfigurationResponse.cs @@ -1,5 +1,4 @@ -using System; -namespace Dapr.Client +namespace Dapr.Client { /// /// Response from an Unsubscribe Configuration call. diff --git a/src/Dapr.Extensions.Configuration/DaprConfigurationStoreSource.cs b/src/Dapr.Extensions.Configuration/DaprConfigurationStoreSource.cs index 2007ebc5b..e7c2bf34a 100644 --- a/src/Dapr.Extensions.Configuration/DaprConfigurationStoreSource.cs +++ b/src/Dapr.Extensions.Configuration/DaprConfigurationStoreSource.cs @@ -13,7 +13,6 @@ using System; using System.Collections.Generic; -using System.Threading; using Dapr.Client; using Microsoft.Extensions.Configuration; diff --git a/src/Dapr.Extensions.Configuration/DaprSecretStoreConfigurationExtensions.cs b/src/Dapr.Extensions.Configuration/DaprSecretStoreConfigurationExtensions.cs index c3d53e072..15ae6ab80 100644 --- a/src/Dapr.Extensions.Configuration/DaprSecretStoreConfigurationExtensions.cs +++ b/src/Dapr.Extensions.Configuration/DaprSecretStoreConfigurationExtensions.cs @@ -17,7 +17,6 @@ using Microsoft.Extensions.Configuration; using Dapr.Extensions.Configuration.DaprSecretStore; using System.Linq; -using System.Threading; namespace Dapr.Extensions.Configuration { diff --git a/src/Dapr.Extensions.Configuration/DaprSecretStoreConfigurationSource.cs b/src/Dapr.Extensions.Configuration/DaprSecretStoreConfigurationSource.cs index 282dc2765..eee3d0b2a 100644 --- a/src/Dapr.Extensions.Configuration/DaprSecretStoreConfigurationSource.cs +++ b/src/Dapr.Extensions.Configuration/DaprSecretStoreConfigurationSource.cs @@ -13,7 +13,6 @@ using System; using System.Collections.Generic; -using System.Threading; using Dapr.Client; using Microsoft.Extensions.Configuration; diff --git a/src/Dapr.Workflow/WorkflowLoggingService.cs b/src/Dapr.Workflow/WorkflowLoggingService.cs index 482d95b97..331156f3e 100644 --- a/src/Dapr.Workflow/WorkflowLoggingService.cs +++ b/src/Dapr.Workflow/WorkflowLoggingService.cs @@ -13,7 +13,6 @@ namespace Dapr.Workflow { - using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; diff --git a/test/Dapr.Actors.AspNetCore.IntegrationTest/AppWebApplicationFactory.cs b/test/Dapr.Actors.AspNetCore.IntegrationTest/AppWebApplicationFactory.cs index 60e91b9e3..de27c9300 100644 --- a/test/Dapr.Actors.AspNetCore.IntegrationTest/AppWebApplicationFactory.cs +++ b/test/Dapr.Actors.AspNetCore.IntegrationTest/AppWebApplicationFactory.cs @@ -14,7 +14,6 @@ namespace Dapr.Actors.AspNetCore.IntegrationTest { using Dapr.Actors.AspNetCore.IntegrationTest.App; - using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; diff --git a/test/Dapr.Actors.AspNetCore.Test/Runtime/DependencyInjectionActorActivatorTests.cs b/test/Dapr.Actors.AspNetCore.Test/Runtime/DependencyInjectionActorActivatorTests.cs index aca679993..9c3b55365 100644 --- a/test/Dapr.Actors.AspNetCore.Test/Runtime/DependencyInjectionActorActivatorTests.cs +++ b/test/Dapr.Actors.AspNetCore.Test/Runtime/DependencyInjectionActorActivatorTests.cs @@ -13,9 +13,7 @@ using System; using System.Threading.Tasks; -using Dapr.Actors.Client; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging.Abstractions; using Xunit; namespace Dapr.Actors.Runtime diff --git a/test/Dapr.Actors.Test/ActorCodeBuilderTests.cs b/test/Dapr.Actors.Test/ActorCodeBuilderTests.cs index 1b4a3fb26..2f2bb67db 100644 --- a/test/Dapr.Actors.Test/ActorCodeBuilderTests.cs +++ b/test/Dapr.Actors.Test/ActorCodeBuilderTests.cs @@ -13,7 +13,6 @@ namespace Dapr.Actors.Test { - using System.Threading; using System.Threading.Tasks; using Dapr.Actors.Builder; using Dapr.Actors.Communication; diff --git a/test/Dapr.Actors.Test/ActorMethodInvocationExceptionTests.cs b/test/Dapr.Actors.Test/ActorMethodInvocationExceptionTests.cs index 5b1e0f526..1311a9394 100644 --- a/test/Dapr.Actors.Test/ActorMethodInvocationExceptionTests.cs +++ b/test/Dapr.Actors.Test/ActorMethodInvocationExceptionTests.cs @@ -15,7 +15,6 @@ namespace Dapr.Actors.Test { using System; using System.IO; - using Dapr.Actors.Communication; using FluentAssertions; using Xunit; diff --git a/test/Dapr.Actors.Test/ActorProxyOptionsTests.cs b/test/Dapr.Actors.Test/ActorProxyOptionsTests.cs index d9ec2cc32..9fab1c32c 100644 --- a/test/Dapr.Actors.Test/ActorProxyOptionsTests.cs +++ b/test/Dapr.Actors.Test/ActorProxyOptionsTests.cs @@ -14,10 +14,6 @@ namespace Dapr.Actors.Client { using System; - using System.Text.Json; - using Dapr.Actors.Builder; - using Dapr.Actors.Client; - using Dapr.Actors.Test; using FluentAssertions; using Xunit; diff --git a/test/Dapr.Actors.Test/ActorStateManagerTest.cs b/test/Dapr.Actors.Test/ActorStateManagerTest.cs index a6517a6b4..a4e0e4140 100644 --- a/test/Dapr.Actors.Test/ActorStateManagerTest.cs +++ b/test/Dapr.Actors.Test/ActorStateManagerTest.cs @@ -14,17 +14,10 @@ namespace Dapr.Actors.Test { using System; - using System.Globalization; - using System.Linq; - using System.Net; - using System.Net.Http; - using System.Security; - using System.Security.Authentication; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; - using FluentAssertions; using Xunit; using Dapr.Actors.Communication; using Dapr.Actors.Runtime; diff --git a/test/Dapr.Actors.Test/ActorUnitTestTests.cs b/test/Dapr.Actors.Test/ActorUnitTestTests.cs index baa52c568..891011de9 100644 --- a/test/Dapr.Actors.Test/ActorUnitTestTests.cs +++ b/test/Dapr.Actors.Test/ActorUnitTestTests.cs @@ -15,9 +15,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Threading.Tasks; -using Dapr.Actors.Client; using Dapr.Actors.Runtime; -using Microsoft.Extensions.Logging.Abstractions; using Moq; using Xunit; diff --git a/test/Dapr.Actors.Test/DaprFormatTimeSpanTests.cs b/test/Dapr.Actors.Test/DaprFormatTimeSpanTests.cs index 9d5710dfc..9d44e7550 100644 --- a/test/Dapr.Actors.Test/DaprFormatTimeSpanTests.cs +++ b/test/Dapr.Actors.Test/DaprFormatTimeSpanTests.cs @@ -17,8 +17,6 @@ namespace Dapr.Actors.Test using System; using System.Collections.Generic; using System.IO; - using System.Text; - using System.Text.Json; using System.Threading.Tasks; using Dapr.Actors.Runtime; using Newtonsoft.Json; diff --git a/test/Dapr.Actors.Test/DaprHttpInteractorTest.cs b/test/Dapr.Actors.Test/DaprHttpInteractorTest.cs index 21c142267..9c42b8fc0 100644 --- a/test/Dapr.Actors.Test/DaprHttpInteractorTest.cs +++ b/test/Dapr.Actors.Test/DaprHttpInteractorTest.cs @@ -18,13 +18,11 @@ namespace Dapr.Actors.Test using System.Linq; using System.Net; using System.Net.Http; - using System.Security; using System.Security.Authentication; using System.Text.Json; using System.Threading.Tasks; using FluentAssertions; using Xunit; - using Dapr.Actors.Communication; /// /// Contains tests for DaprHttpInteractor. diff --git a/test/Dapr.Actors.Test/DaprStateProviderTest.cs b/test/Dapr.Actors.Test/DaprStateProviderTest.cs index 63be89e95..948b14b46 100644 --- a/test/Dapr.Actors.Test/DaprStateProviderTest.cs +++ b/test/Dapr.Actors.Test/DaprStateProviderTest.cs @@ -14,17 +14,10 @@ namespace Dapr.Actors.Test { using System; - using System.Globalization; - using System.Linq; - using System.Net; - using System.Net.Http; - using System.Security; - using System.Security.Authentication; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; - using FluentAssertions; using Xunit; using Dapr.Actors.Communication; using Dapr.Actors.Runtime; diff --git a/test/Dapr.Actors.Test/Runtime/ActorRuntimeTests.cs b/test/Dapr.Actors.Test/Runtime/ActorRuntimeTests.cs index c74d0b754..6ebfe1bb2 100644 --- a/test/Dapr.Actors.Test/Runtime/ActorRuntimeTests.cs +++ b/test/Dapr.Actors.Test/Runtime/ActorRuntimeTests.cs @@ -15,7 +15,6 @@ namespace Dapr.Actors.Test { using System; using System.Buffers; - using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; diff --git a/test/Dapr.Actors.Test/Runtime/DefaultActorActivatorTests.cs b/test/Dapr.Actors.Test/Runtime/DefaultActorActivatorTests.cs index f5ee9ae53..87045b295 100644 --- a/test/Dapr.Actors.Test/Runtime/DefaultActorActivatorTests.cs +++ b/test/Dapr.Actors.Test/Runtime/DefaultActorActivatorTests.cs @@ -13,8 +13,6 @@ using System; using System.Threading.Tasks; -using Dapr.Actors.Client; -using Microsoft.Extensions.Logging.Abstractions; using Xunit; namespace Dapr.Actors.Runtime diff --git a/test/Dapr.Actors.Test/Serialization/ActorIdDataContractSerializationTest.cs b/test/Dapr.Actors.Test/Serialization/ActorIdDataContractSerializationTest.cs index c7b879d70..dfaccbc19 100644 --- a/test/Dapr.Actors.Test/Serialization/ActorIdDataContractSerializationTest.cs +++ b/test/Dapr.Actors.Test/Serialization/ActorIdDataContractSerializationTest.cs @@ -11,13 +11,9 @@ // limitations under the License. // ------------------------------------------------------------------------ -using System; using System.IO; using System.Runtime.Serialization; -using System.Text.Json; -using System.Text.Json.Serialization; using System.Xml; -using System.Xml.Linq; using FluentAssertions; using Xunit; diff --git a/test/Dapr.Actors.Test/Serialization/TimerInfoJsonConverterTest.cs b/test/Dapr.Actors.Test/Serialization/TimerInfoJsonConverterTest.cs index 5799c172e..264fcb8a0 100644 --- a/test/Dapr.Actors.Test/Serialization/TimerInfoJsonConverterTest.cs +++ b/test/Dapr.Actors.Test/Serialization/TimerInfoJsonConverterTest.cs @@ -13,7 +13,6 @@ using System; using System.Text.Json; -using System.Text.Json.Serialization; using Xunit; #pragma warning disable 0618 diff --git a/test/Dapr.AspNetCore.IntegrationTest/StateTestClient.cs b/test/Dapr.AspNetCore.IntegrationTest/StateTestClient.cs index f9ad63b7b..b4940835c 100644 --- a/test/Dapr.AspNetCore.IntegrationTest/StateTestClient.cs +++ b/test/Dapr.AspNetCore.IntegrationTest/StateTestClient.cs @@ -16,10 +16,8 @@ namespace Dapr.Client using System; using System.Collections.Generic; using System.Net.Http; - using System.Text.Json; using System.Threading; using System.Threading.Tasks; - using Dapr.Client; using Grpc.Net.Client; using Autogenerated = Dapr.Client.Autogen.Grpc.v1; diff --git a/test/Dapr.AspNetCore.Test/CloudEventsMiddlewareTest.cs b/test/Dapr.AspNetCore.Test/CloudEventsMiddlewareTest.cs index c8a5ff402..9c1f1e005 100644 --- a/test/Dapr.AspNetCore.Test/CloudEventsMiddlewareTest.cs +++ b/test/Dapr.AspNetCore.Test/CloudEventsMiddlewareTest.cs @@ -20,7 +20,6 @@ namespace Dapr.AspNetCore.Test using System.Threading.Tasks; using FluentAssertions; using Microsoft.AspNetCore.Builder; - using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Xunit; diff --git a/test/Dapr.AspNetCore.Test/DaprClientBuilderTest.cs b/test/Dapr.AspNetCore.Test/DaprClientBuilderTest.cs index bd807ebae..45cbcc152 100644 --- a/test/Dapr.AspNetCore.Test/DaprClientBuilderTest.cs +++ b/test/Dapr.AspNetCore.Test/DaprClientBuilderTest.cs @@ -14,7 +14,6 @@ using System; using System.Text.Json; using Dapr.Client; -using Grpc.Core; using Grpc.Net.Client; using Xunit; diff --git a/test/Dapr.AspNetCore.Test/StateEntryApplicationModelProviderTest.cs b/test/Dapr.AspNetCore.Test/StateEntryApplicationModelProviderTest.cs index d6b966c97..06572caa5 100644 --- a/test/Dapr.AspNetCore.Test/StateEntryApplicationModelProviderTest.cs +++ b/test/Dapr.AspNetCore.Test/StateEntryApplicationModelProviderTest.cs @@ -17,19 +17,11 @@ namespace Dapr.AspNetCore.Test using System.Collections.Generic; using System.Linq; using System.Reflection; - using System.Text.Json; - using System.Threading.Tasks; using Dapr.AspNetCore.Resources; - using Dapr.Client; - using Dapr.Client.Autogen.Grpc.v1; using FluentAssertions; - using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ApplicationModels; using Microsoft.AspNetCore.Mvc.ModelBinding; - using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; - using Microsoft.AspNetCore.Mvc.Routing; - using Microsoft.Extensions.DependencyInjection; using Xunit; public class StateEntryApplicationModelProviderTest diff --git a/test/Dapr.Client.Test/ConfigurationApiTest.cs b/test/Dapr.Client.Test/ConfigurationApiTest.cs index 2e96582bd..095024933 100644 --- a/test/Dapr.Client.Test/ConfigurationApiTest.cs +++ b/test/Dapr.Client.Test/ConfigurationApiTest.cs @@ -16,7 +16,6 @@ using Autogenerated = Dapr.Client.Autogen.Grpc.v1; using Xunit; using FluentAssertions; -using System; namespace Dapr.Client.Test { diff --git a/test/Dapr.Client.Test/DaprClientTest.InvokeMethodAsync.cs b/test/Dapr.Client.Test/DaprClientTest.InvokeMethodAsync.cs index 3359c3b48..58663227c 100644 --- a/test/Dapr.Client.Test/DaprClientTest.InvokeMethodAsync.cs +++ b/test/Dapr.Client.Test/DaprClientTest.InvokeMethodAsync.cs @@ -11,13 +11,13 @@ // limitations under the License. // ------------------------------------------------------------------------ +using System.Collections.Generic; using System.Linq; using System.Net.Http.Headers; namespace Dapr.Client.Test { using System; - using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Net.Http.Json; @@ -26,7 +26,6 @@ namespace Dapr.Client.Test using System.Threading; using System.Threading.Tasks; using Dapr.Client; - using FluentAssertions; using Xunit; // Most of the InvokeMethodAsync functionality on DaprClient is non-abstract methods that diff --git a/test/Dapr.Client.Test/PublishEventApiTest.cs b/test/Dapr.Client.Test/PublishEventApiTest.cs index e3e21dd2b..6ba774e52 100644 --- a/test/Dapr.Client.Test/PublishEventApiTest.cs +++ b/test/Dapr.Client.Test/PublishEventApiTest.cs @@ -11,7 +11,6 @@ // limitations under the License. // ------------------------------------------------------------------------ -using System.Collections.Immutable; using System.Linq; using System.Net.Http; using System.Text.Json.Serialization; diff --git a/test/Dapr.Client.Test/StateApiTest.cs b/test/Dapr.Client.Test/StateApiTest.cs index b240605a1..f6ecb5d80 100644 --- a/test/Dapr.Client.Test/StateApiTest.cs +++ b/test/Dapr.Client.Test/StateApiTest.cs @@ -22,14 +22,12 @@ namespace Dapr.Client.Test using FluentAssertions; using Google.Protobuf; using Grpc.Core; - using Grpc.Net.Client; using Moq; using StateConsistency = Dapr.Client.Autogen.Grpc.v1.StateOptions.Types.StateConsistency; using StateConcurrency = Dapr.Client.Autogen.Grpc.v1.StateOptions.Types.StateConcurrency; using Xunit; using System.Threading; using System.Net.Http; - using System.Text; public class StateApiTest { diff --git a/test/Dapr.Client.Test/TypeConvertersTest.cs b/test/Dapr.Client.Test/TypeConvertersTest.cs index 42a1e4385..1e6b57eab 100644 --- a/test/Dapr.Client.Test/TypeConvertersTest.cs +++ b/test/Dapr.Client.Test/TypeConvertersTest.cs @@ -14,7 +14,6 @@ namespace Dapr.Client.Test { using System.Text.Json; - using Dapr.Client.Autogen.Test.Grpc.v1; using FluentAssertions; using Xunit; diff --git a/test/Dapr.E2E.Test.App.Grpc/Startup.cs b/test/Dapr.E2E.Test.App.Grpc/Startup.cs index 531fb91b3..651f0c76b 100644 --- a/test/Dapr.E2E.Test.App.Grpc/Startup.cs +++ b/test/Dapr.E2E.Test.App.Grpc/Startup.cs @@ -1,23 +1,18 @@ -// ------------------------------------------------------------------------ -// Copyright 2021 The Dapr Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; +// ------------------------------------------------------------------------ +// Copyright 2021 The Dapr Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ------------------------------------------------------------------------ + using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; diff --git a/test/Dapr.E2E.Test.App/Actors/StateActor.cs b/test/Dapr.E2E.Test.App/Actors/StateActor.cs index 71a952e0f..76e9745ff 100644 --- a/test/Dapr.E2E.Test.App/Actors/StateActor.cs +++ b/test/Dapr.E2E.Test.App/Actors/StateActor.cs @@ -12,7 +12,6 @@ // ------------------------------------------------------------------------ using System; -using System.Text.Json; using System.Threading.Tasks; using Dapr.Actors.Runtime; diff --git a/test/Dapr.E2E.Test.App/Controllers/TestController.cs b/test/Dapr.E2E.Test.App/Controllers/TestController.cs index 4e475c197..1f9274d0e 100644 --- a/test/Dapr.E2E.Test.App/Controllers/TestController.cs +++ b/test/Dapr.E2E.Test.App/Controllers/TestController.cs @@ -15,8 +15,6 @@ namespace Dapr.E2E.Test { using System; using System.Threading.Tasks; - using Dapr; - using Dapr.Client; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; diff --git a/test/Dapr.E2E.Test.App/Startup.cs b/test/Dapr.E2E.Test.App/Startup.cs index 7e7484d54..05c633000 100644 --- a/test/Dapr.E2E.Test.App/Startup.cs +++ b/test/Dapr.E2E.Test.App/Startup.cs @@ -13,7 +13,6 @@ namespace Dapr.E2E.Test { - using Dapr.E2E.Test.Actors.Reentrancy; using Dapr.E2E.Test.Actors.Reminders; using Dapr.E2E.Test.Actors.Timers; using Dapr.E2E.Test.Actors.State; @@ -30,7 +29,6 @@ namespace Dapr.E2E.Test using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System.Threading.Tasks; - using System; using Microsoft.Extensions.Logging; using Serilog; diff --git a/test/Dapr.E2E.Test/Actors/E2ETests.StateTests.cs b/test/Dapr.E2E.Test/Actors/E2ETests.StateTests.cs index 184a40448..7a1408a0e 100644 --- a/test/Dapr.E2E.Test/Actors/E2ETests.StateTests.cs +++ b/test/Dapr.E2E.Test/Actors/E2ETests.StateTests.cs @@ -13,7 +13,6 @@ namespace Dapr.E2E.Test { using System; - using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Dapr.Actors; diff --git a/test/Dapr.E2E.Test/ServiceInvocation/E2ETests.ServiceInvocationTests.cs b/test/Dapr.E2E.Test/ServiceInvocation/E2ETests.ServiceInvocationTests.cs index da49e6721..78fed3d30 100644 --- a/test/Dapr.E2E.Test/ServiceInvocation/E2ETests.ServiceInvocationTests.cs +++ b/test/Dapr.E2E.Test/ServiceInvocation/E2ETests.ServiceInvocationTests.cs @@ -13,15 +13,11 @@ namespace Dapr.E2E.Test { using System; - using System.Net; using System.Net.Http; using System.Net.Http.Json; - using System.Net.Sockets; using System.Threading; using System.Threading.Tasks; using Dapr.Client; - using Google.Protobuf.WellKnownTypes; - using Grpc.Core; using Xunit; public partial class E2ETests diff --git a/test/Shared/GrpcUtils.cs b/test/Shared/GrpcUtils.cs index 2dfdf8082..fd7ddf151 100644 --- a/test/Shared/GrpcUtils.cs +++ b/test/Shared/GrpcUtils.cs @@ -19,7 +19,6 @@ namespace Dapr using System.Net; using System.Net.Http; using System.Net.Http.Headers; - using System.Text.Json; using System.Threading.Tasks; using Google.Protobuf; using Grpc.Core;