From 4afaa386db527e1ff168389bb189ddbecd8deaff Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 16 Feb 2018 14:04:16 -0800 Subject: [PATCH] Remove unnecessary usings (#2326) --- .../Kestrel.Performance/DotSegmentRemovalBenchmark.cs | 1 - benchmarks/Kestrel.Performance/HttpParserBenchmark.cs | 1 - benchmarks/Kestrel.Performance/Mocks/NullParser.cs | 2 -- src/Kestrel.Core/Adapter/Internal/AdaptedPipeline.cs | 1 - .../Adapter/Internal/LoggingConnectionAdapter.cs | 1 - src/Kestrel.Core/Internal/CertificateLoader.cs | 2 -- src/Kestrel.Core/Internal/ConfigurationReader.cs | 1 - src/Kestrel.Core/Internal/Http/Http1Connection.cs | 1 - src/Kestrel.Core/Internal/Http/Http1ConnectionContext.cs | 1 - src/Kestrel.Core/Internal/Http/Http1MessageBody.cs | 1 - src/Kestrel.Core/Internal/Http/Http1OutputProducer.cs | 1 - src/Kestrel.Core/Internal/Http/HttpParser.cs | 2 -- .../Internal/Http/HttpProtocol.FeatureCollection.cs | 1 - src/Kestrel.Core/Internal/Http/HttpRequestStream.cs | 1 - src/Kestrel.Core/Internal/Http/IHttpParser.cs | 2 -- src/Kestrel.Core/Internal/Http/IHttpProtocolContext.cs | 1 - src/Kestrel.Core/Internal/Http/MessageBody.cs | 1 - src/Kestrel.Core/Internal/Http2/HPack/HPackEncoder.cs | 3 --- src/Kestrel.Core/Internal/Http2/Http2Connection.cs | 2 -- src/Kestrel.Core/Internal/Http2/Http2ErrorCode.cs | 1 - src/Kestrel.Core/Internal/Http2/Http2Frame.Continuation.cs | 1 - src/Kestrel.Core/Internal/Http2/Http2Frame.Ping.cs | 1 - src/Kestrel.Core/Internal/Http2/Http2Frame.cs | 1 - src/Kestrel.Core/Internal/Http2/Http2FrameReader.cs | 2 -- src/Kestrel.Core/Internal/Http2/Http2PeerSettings.cs | 1 - src/Kestrel.Core/Internal/Http2/Http2StreamContext.cs | 1 - src/Kestrel.Core/Internal/HttpsConnectionAdapter.cs | 1 - .../HttpConnectionManagerShutdownExtensions.cs | 1 - .../Internal/Infrastructure/KestrelEventSource.cs | 4 ---- src/Kestrel.Core/Internal/ServerAddressesFeature.cs | 2 -- src/Kestrel.Core/Internal/ServiceContext.cs | 1 - src/Kestrel.Core/KestrelServer.cs | 1 - src/Kestrel.Core/ListenOptionsHttpsExtensions.cs | 1 - .../Internal/IConnectionHandler.cs | 1 - .../Internal/TransportConnection.Features.cs | 1 - .../Internal/TransportConnection.cs | 3 +-- src/Kestrel.Transport.Libuv/Internal/LibuvConnection.cs | 1 - .../Internal/LibuvConnectionContext.cs | 2 -- src/Kestrel.Transport.Libuv/Internal/LibuvThread.cs | 1 - .../Internal/Networking/UvWriteReq.cs | 1 - src/Kestrel.Transport.Sockets/Internal/SocketConnection.cs | 2 -- src/Kestrel.Transport.Sockets/Internal/SocketSender.cs | 1 - src/Kestrel.Transport.Sockets/SocketTransport.cs | 1 - src/Kestrel.Transport.Sockets/SocketTransportOptions.cs | 3 --- src/Protocols.Abstractions/ConnectionDelegate.cs | 5 +---- src/Protocols.Abstractions/DefaultConnectionContext.cs | 3 +-- src/Protocols.Abstractions/DuplexPipe.cs | 5 +---- src/Protocols.Abstractions/Features/IConnectionIdFeature.cs | 6 +----- src/Protocols.Abstractions/IConnectionBuilder.cs | 2 -- test/Kestrel.Core.Tests/AddressBinderTests.cs | 1 - test/Kestrel.Core.Tests/HPackEncoderTests.cs | 1 - test/Kestrel.Core.Tests/Http1ConnectionTests.cs | 2 -- test/Kestrel.Core.Tests/HttpParserTests.cs | 1 - test/Kestrel.Core.Tests/HttpRequestHeadersTests.cs | 1 - test/Kestrel.Core.Tests/IntegerDecoderTests.cs | 1 - test/Kestrel.Core.Tests/IntegerEncoderTests.cs | 1 - test/Kestrel.Core.Tests/KestrelEventSourceTests.cs | 1 - test/Kestrel.Core.Tests/PipeOptionsTests.cs | 3 --- test/Kestrel.Core.Tests/ServerAddressTests.cs | 1 - test/Kestrel.FunctionalTests/AddressRegistrationTests.cs | 1 - test/Kestrel.FunctionalTests/BadHttpRequestTests.cs | 1 - test/Kestrel.FunctionalTests/HttpsTests.cs | 2 -- test/Kestrel.FunctionalTests/KeepAliveTimeoutTests.cs | 1 - test/Kestrel.FunctionalTests/RequestTests.cs | 1 - .../TestHelpers/NetworkIsReachableAttribute.cs | 1 - test/Kestrel.Transport.Libuv.Tests/MultipleLoopTests.cs | 2 -- test/Kestrel.Transport.Libuv.Tests/NetworkingTests.cs | 1 - .../TestHelpers/TestLibuvTransportContext.cs | 1 - test/shared/PassThroughConnectionAdapter.cs | 1 - test/shared/TestServiceContext.cs | 1 - tools/CodeGenerator/HttpProtocolFeatureCollection.cs | 3 --- 71 files changed, 5 insertions(+), 107 deletions(-) diff --git a/benchmarks/Kestrel.Performance/DotSegmentRemovalBenchmark.cs b/benchmarks/Kestrel.Performance/DotSegmentRemovalBenchmark.cs index 79389d4a33..5f943d97de 100644 --- a/benchmarks/Kestrel.Performance/DotSegmentRemovalBenchmark.cs +++ b/benchmarks/Kestrel.Performance/DotSegmentRemovalBenchmark.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Text; using BenchmarkDotNet.Attributes; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; diff --git a/benchmarks/Kestrel.Performance/HttpParserBenchmark.cs b/benchmarks/Kestrel.Performance/HttpParserBenchmark.cs index 2c42151f34..5b02d38a93 100644 --- a/benchmarks/Kestrel.Performance/HttpParserBenchmark.cs +++ b/benchmarks/Kestrel.Performance/HttpParserBenchmark.cs @@ -3,7 +3,6 @@ using System; using System.Buffers; -using System.IO.Pipelines; using BenchmarkDotNet.Attributes; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; diff --git a/benchmarks/Kestrel.Performance/Mocks/NullParser.cs b/benchmarks/Kestrel.Performance/Mocks/NullParser.cs index 3f83491dd8..60bab155a0 100644 --- a/benchmarks/Kestrel.Performance/Mocks/NullParser.cs +++ b/benchmarks/Kestrel.Performance/Mocks/NullParser.cs @@ -4,8 +4,6 @@ using System; using System.Buffers; using System.Collections; -using System.Collections.Sequences; -using System.IO.Pipelines; using System.Text; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; diff --git a/src/Kestrel.Core/Adapter/Internal/AdaptedPipeline.cs b/src/Kestrel.Core/Adapter/Internal/AdaptedPipeline.cs index 2cebf61741..fd8c35f037 100644 --- a/src/Kestrel.Core/Adapter/Internal/AdaptedPipeline.cs +++ b/src/Kestrel.Core/Adapter/Internal/AdaptedPipeline.cs @@ -6,7 +6,6 @@ using System.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; using System.IO.Pipelines; -using System.Runtime.InteropServices; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Adapter.Internal { diff --git a/src/Kestrel.Core/Adapter/Internal/LoggingConnectionAdapter.cs b/src/Kestrel.Core/Adapter/Internal/LoggingConnectionAdapter.cs index 10d370df56..1afd32d1d6 100644 --- a/src/Kestrel.Core/Adapter/Internal/LoggingConnectionAdapter.cs +++ b/src/Kestrel.Core/Adapter/Internal/LoggingConnectionAdapter.cs @@ -4,7 +4,6 @@ using System; using System.IO; using System.Threading.Tasks; -using Microsoft.AspNetCore.Http.Features; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Adapter.Internal diff --git a/src/Kestrel.Core/Internal/CertificateLoader.cs b/src/Kestrel.Core/Internal/CertificateLoader.cs index 087fad7d87..ce9c17e340 100644 --- a/src/Kestrel.Core/Internal/CertificateLoader.cs +++ b/src/Kestrel.Core/Internal/CertificateLoader.cs @@ -2,10 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Linq; using System.Security.Cryptography.X509Certificates; -using System.Text; using Microsoft.AspNetCore.Server.Kestrel.Core; namespace Microsoft.AspNetCore.Server.Kestrel.Https.Internal diff --git a/src/Kestrel.Core/Internal/ConfigurationReader.cs b/src/Kestrel.Core/Internal/ConfigurationReader.cs index 08f347b922..b36a9af94e 100644 --- a/src/Kestrel.Core/Internal/ConfigurationReader.cs +++ b/src/Kestrel.Core/Internal/ConfigurationReader.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Microsoft.Extensions.Configuration; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal diff --git a/src/Kestrel.Core/Internal/Http/Http1Connection.cs b/src/Kestrel.Core/Internal/Http/Http1Connection.cs index e0e5c7d438..a09b17e139 100644 --- a/src/Kestrel.Core/Internal/Http/Http1Connection.cs +++ b/src/Kestrel.Core/Internal/Http/Http1Connection.cs @@ -4,7 +4,6 @@ using System; using System.Buffers; using System.Collections; -using System.Collections.Sequences; using System.Diagnostics; using System.IO.Pipelines; using System.Runtime.InteropServices; diff --git a/src/Kestrel.Core/Internal/Http/Http1ConnectionContext.cs b/src/Kestrel.Core/Internal/Http/Http1ConnectionContext.cs index cb3d9a2cef..b88bb4bedb 100644 --- a/src/Kestrel.Core/Internal/Http/Http1ConnectionContext.cs +++ b/src/Kestrel.Core/Internal/Http/Http1ConnectionContext.cs @@ -5,7 +5,6 @@ using System.Buffers; using System.IO.Pipelines; using System.Net; using Microsoft.AspNetCore.Http.Features; -using Microsoft.AspNetCore.Protocols; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http diff --git a/src/Kestrel.Core/Internal/Http/Http1MessageBody.cs b/src/Kestrel.Core/Internal/Http/Http1MessageBody.cs index 4910ae18be..4e08e419fb 100644 --- a/src/Kestrel.Core/Internal/Http/Http1MessageBody.cs +++ b/src/Kestrel.Core/Internal/Http/Http1MessageBody.cs @@ -4,7 +4,6 @@ using System; using System.Buffers; using System.Collections; -using System.Collections.Sequences; using System.IO; using System.IO.Pipelines; using System.Threading.Tasks; diff --git a/src/Kestrel.Core/Internal/Http/Http1OutputProducer.cs b/src/Kestrel.Core/Internal/Http/Http1OutputProducer.cs index a3781075c5..f220e7c70f 100644 --- a/src/Kestrel.Core/Internal/Http/Http1OutputProducer.cs +++ b/src/Kestrel.Core/Internal/Http/Http1OutputProducer.cs @@ -3,7 +3,6 @@ using System; using System.Buffers; -using System.Diagnostics; using System.IO.Pipelines; using System.Runtime.CompilerServices; using System.Text; diff --git a/src/Kestrel.Core/Internal/Http/HttpParser.cs b/src/Kestrel.Core/Internal/Http/HttpParser.cs index ece56ac7ed..36c4ffecfb 100644 --- a/src/Kestrel.Core/Internal/Http/HttpParser.cs +++ b/src/Kestrel.Core/Internal/Http/HttpParser.cs @@ -4,8 +4,6 @@ using System; using System.Buffers; using System.Collections; -using System.Collections.Sequences; -using System.IO.Pipelines; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure; diff --git a/src/Kestrel.Core/Internal/Http/HttpProtocol.FeatureCollection.cs b/src/Kestrel.Core/Internal/Http/HttpProtocol.FeatureCollection.cs index 230ba868ac..e4fe29168f 100644 --- a/src/Kestrel.Core/Internal/Http/HttpProtocol.FeatureCollection.cs +++ b/src/Kestrel.Core/Internal/Http/HttpProtocol.FeatureCollection.cs @@ -11,7 +11,6 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Server.Kestrel.Core.Features; -using Microsoft.Extensions.Primitives; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http { diff --git a/src/Kestrel.Core/Internal/Http/HttpRequestStream.cs b/src/Kestrel.Core/Internal/Http/HttpRequestStream.cs index ca81b5ae56..2f677704c3 100644 --- a/src/Kestrel.Core/Internal/Http/HttpRequestStream.cs +++ b/src/Kestrel.Core/Internal/Http/HttpRequestStream.cs @@ -6,7 +6,6 @@ using System.IO; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure; -using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Protocols; diff --git a/src/Kestrel.Core/Internal/Http/IHttpParser.cs b/src/Kestrel.Core/Internal/Http/IHttpParser.cs index 62c2c131b3..e1978ffb01 100644 --- a/src/Kestrel.Core/Internal/Http/IHttpParser.cs +++ b/src/Kestrel.Core/Internal/Http/IHttpParser.cs @@ -3,8 +3,6 @@ using System.Buffers; using System.Collections; -using System.Collections.Sequences; -using System.IO.Pipelines; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http { diff --git a/src/Kestrel.Core/Internal/Http/IHttpProtocolContext.cs b/src/Kestrel.Core/Internal/Http/IHttpProtocolContext.cs index 392dcf1833..c58d97196d 100644 --- a/src/Kestrel.Core/Internal/Http/IHttpProtocolContext.cs +++ b/src/Kestrel.Core/Internal/Http/IHttpProtocolContext.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Buffers; -using System.IO.Pipelines; using System.Net; using Microsoft.AspNetCore.Http.Features; diff --git a/src/Kestrel.Core/Internal/Http/MessageBody.cs b/src/Kestrel.Core/Internal/Http/MessageBody.cs index 08054b35aa..5d05eacf43 100644 --- a/src/Kestrel.Core/Internal/Http/MessageBody.cs +++ b/src/Kestrel.Core/Internal/Http/MessageBody.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.IO.Pipelines; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure; diff --git a/src/Kestrel.Core/Internal/Http2/HPack/HPackEncoder.cs b/src/Kestrel.Core/Internal/Http2/HPack/HPackEncoder.cs index 25206fed5b..0c92961acf 100644 --- a/src/Kestrel.Core/Internal/Http2/HPack/HPackEncoder.cs +++ b/src/Kestrel.Core/Internal/Http2/HPack/HPackEncoder.cs @@ -2,10 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections; using System.Collections.Generic; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Primitives; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.HPack { diff --git a/src/Kestrel.Core/Internal/Http2/Http2Connection.cs b/src/Kestrel.Core/Internal/Http2/Http2Connection.cs index ca788861ed..2d8fcd9b95 100644 --- a/src/Kestrel.Core/Internal/Http2/Http2Connection.cs +++ b/src/Kestrel.Core/Internal/Http2/Http2Connection.cs @@ -4,12 +4,10 @@ using System; using System.Buffers; using System.Collections; -using System.Collections.Sequences; using System.Collections.Concurrent; using System.IO.Pipelines; using System.Text; using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting.Server; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Protocols; diff --git a/src/Kestrel.Core/Internal/Http2/Http2ErrorCode.cs b/src/Kestrel.Core/Internal/Http2/Http2ErrorCode.cs index 2f14f191ba..401350fb39 100644 --- a/src/Kestrel.Core/Internal/Http2/Http2ErrorCode.cs +++ b/src/Kestrel.Core/Internal/Http2/Http2ErrorCode.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2 { diff --git a/src/Kestrel.Core/Internal/Http2/Http2Frame.Continuation.cs b/src/Kestrel.Core/Internal/Http2/Http2Frame.Continuation.cs index e184ff64db..d599864b7b 100644 --- a/src/Kestrel.Core/Internal/Http2/Http2Frame.Continuation.cs +++ b/src/Kestrel.Core/Internal/Http2/Http2Frame.Continuation.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2 { diff --git a/src/Kestrel.Core/Internal/Http2/Http2Frame.Ping.cs b/src/Kestrel.Core/Internal/Http2/Http2Frame.Ping.cs index 932d717ac1..cbbdc88d41 100644 --- a/src/Kestrel.Core/Internal/Http2/Http2Frame.Ping.cs +++ b/src/Kestrel.Core/Internal/Http2/Http2Frame.Ping.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2 { diff --git a/src/Kestrel.Core/Internal/Http2/Http2Frame.cs b/src/Kestrel.Core/Internal/Http2/Http2Frame.cs index f983b632a3..e0dbf8bd09 100644 --- a/src/Kestrel.Core/Internal/Http2/Http2Frame.cs +++ b/src/Kestrel.Core/Internal/Http2/Http2Frame.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2 { diff --git a/src/Kestrel.Core/Internal/Http2/Http2FrameReader.cs b/src/Kestrel.Core/Internal/Http2/Http2FrameReader.cs index 9673ad57d5..68bf0e07e2 100644 --- a/src/Kestrel.Core/Internal/Http2/Http2FrameReader.cs +++ b/src/Kestrel.Core/Internal/Http2/Http2FrameReader.cs @@ -3,8 +3,6 @@ using System.Buffers; using System.Collections; -using System.Collections.Sequences; -using System.IO.Pipelines; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2 { diff --git a/src/Kestrel.Core/Internal/Http2/Http2PeerSettings.cs b/src/Kestrel.Core/Internal/Http2/Http2PeerSettings.cs index af94d593df..4bf4787435 100644 --- a/src/Kestrel.Core/Internal/Http2/Http2PeerSettings.cs +++ b/src/Kestrel.Core/Internal/Http2/Http2PeerSettings.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections; using System.Collections.Generic; diff --git a/src/Kestrel.Core/Internal/Http2/Http2StreamContext.cs b/src/Kestrel.Core/Internal/Http2/Http2StreamContext.cs index 247e1764a7..72ccd8d7c0 100644 --- a/src/Kestrel.Core/Internal/Http2/Http2StreamContext.cs +++ b/src/Kestrel.Core/Internal/Http2/Http2StreamContext.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Buffers; -using System.IO.Pipelines; using System.Net; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; diff --git a/src/Kestrel.Core/Internal/HttpsConnectionAdapter.cs b/src/Kestrel.Core/Internal/HttpsConnectionAdapter.cs index 5022462886..c71aedfedb 100644 --- a/src/Kestrel.Core/Internal/HttpsConnectionAdapter.cs +++ b/src/Kestrel.Core/Internal/HttpsConnectionAdapter.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Threading; diff --git a/src/Kestrel.Core/Internal/Infrastructure/HttpConnectionManagerShutdownExtensions.cs b/src/Kestrel.Core/Internal/Infrastructure/HttpConnectionManagerShutdownExtensions.cs index d8f6320ff9..40e41874c4 100644 --- a/src/Kestrel.Core/Internal/Infrastructure/HttpConnectionManagerShutdownExtensions.cs +++ b/src/Kestrel.Core/Internal/Infrastructure/HttpConnectionManagerShutdownExtensions.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Protocols; -using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure { diff --git a/src/Kestrel.Core/Internal/Infrastructure/KestrelEventSource.cs b/src/Kestrel.Core/Internal/Infrastructure/KestrelEventSource.cs index 708dedaa89..ed70a3797a 100644 --- a/src/Kestrel.Core/Internal/Infrastructure/KestrelEventSource.cs +++ b/src/Kestrel.Core/Internal/Infrastructure/KestrelEventSource.cs @@ -2,12 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Diagnostics.Tracing; -using System.Net; using System.Runtime.CompilerServices; -using Microsoft.AspNetCore.Http.Features; -using Microsoft.AspNetCore.Protocols; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; -using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure { diff --git a/src/Kestrel.Core/Internal/ServerAddressesFeature.cs b/src/Kestrel.Core/Internal/ServerAddressesFeature.cs index 76a9d960b5..f8bcd13cde 100644 --- a/src/Kestrel.Core/Internal/ServerAddressesFeature.cs +++ b/src/Kestrel.Core/Internal/ServerAddressesFeature.cs @@ -1,9 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; -using System.Text; using Microsoft.AspNetCore.Hosting.Server.Features; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal diff --git a/src/Kestrel.Core/Internal/ServiceContext.cs b/src/Kestrel.Core/Internal/ServiceContext.cs index 9bad6b576b..9ca494fa54 100644 --- a/src/Kestrel.Core/Internal/ServiceContext.cs +++ b/src/Kestrel.Core/Internal/ServiceContext.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure; diff --git a/src/Kestrel.Core/KestrelServer.cs b/src/Kestrel.Core/KestrelServer.cs index 8f1c62099e..fcf6aedca9 100644 --- a/src/Kestrel.Core/KestrelServer.cs +++ b/src/Kestrel.Core/KestrelServer.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting.Server; diff --git a/src/Kestrel.Core/ListenOptionsHttpsExtensions.cs b/src/Kestrel.Core/ListenOptionsHttpsExtensions.cs index 6a03648746..7cc267c5de 100644 --- a/src/Kestrel.Core/ListenOptionsHttpsExtensions.cs +++ b/src/Kestrel.Core/ListenOptionsHttpsExtensions.cs @@ -5,7 +5,6 @@ using System; using System.IO; using System.Security.Cryptography.X509Certificates; using Microsoft.AspNetCore.Server.Kestrel.Core; -using Microsoft.AspNetCore.Server.Kestrel.Core.Internal; using Microsoft.AspNetCore.Server.Kestrel.Https; using Microsoft.AspNetCore.Server.Kestrel.Https.Internal; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Kestrel.Transport.Abstractions/Internal/IConnectionHandler.cs b/src/Kestrel.Transport.Abstractions/Internal/IConnectionHandler.cs index 41b5c57839..9ae3f89c3f 100644 --- a/src/Kestrel.Transport.Abstractions/Internal/IConnectionHandler.cs +++ b/src/Kestrel.Transport.Abstractions/Internal/IConnectionHandler.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Threading.Tasks; using Microsoft.AspNetCore.Http.Features; namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal diff --git a/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs b/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs index 98308725e6..ad794fa879 100644 --- a/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs +++ b/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.Features.cs @@ -4,7 +4,6 @@ using System.Collections; using System.Collections.Generic; using System.IO.Pipelines; using System.Net; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Protocols.Features; diff --git a/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.cs b/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.cs index bd5193738f..34cb670e48 100644 --- a/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.cs +++ b/src/Kestrel.Transport.Abstractions/Internal/TransportConnection.cs @@ -1,5 +1,4 @@ -using System; -using System.Buffers; +using System.Buffers; using System.IO.Pipelines; using System.Net; using System.Threading; diff --git a/src/Kestrel.Transport.Libuv/Internal/LibuvConnection.cs b/src/Kestrel.Transport.Libuv/Internal/LibuvConnection.cs index a606d32f07..8471d89d61 100644 --- a/src/Kestrel.Transport.Libuv/Internal/LibuvConnection.cs +++ b/src/Kestrel.Transport.Libuv/Internal/LibuvConnection.cs @@ -3,7 +3,6 @@ using System; using System.Buffers; -using System.Diagnostics; using System.IO; using System.IO.Pipelines; using System.Threading; diff --git a/src/Kestrel.Transport.Libuv/Internal/LibuvConnectionContext.cs b/src/Kestrel.Transport.Libuv/Internal/LibuvConnectionContext.cs index 075a57752c..39f68be604 100644 --- a/src/Kestrel.Transport.Libuv/Internal/LibuvConnectionContext.cs +++ b/src/Kestrel.Transport.Libuv/Internal/LibuvConnectionContext.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Buffers; -using System.Net; -using System.IO.Pipelines; using System.Threading; using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal; diff --git a/src/Kestrel.Transport.Libuv/Internal/LibuvThread.cs b/src/Kestrel.Transport.Libuv/Internal/LibuvThread.cs index db3682fe32..87774d835a 100644 --- a/src/Kestrel.Transport.Libuv/Internal/LibuvThread.cs +++ b/src/Kestrel.Transport.Libuv/Internal/LibuvThread.cs @@ -5,7 +5,6 @@ using System; using System.Buffers; using System.Collections.Generic; using System.Diagnostics; -using System.IO.Pipelines; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; diff --git a/src/Kestrel.Transport.Libuv/Internal/Networking/UvWriteReq.cs b/src/Kestrel.Transport.Libuv/Internal/Networking/UvWriteReq.cs index e720f2700c..27d78bae3d 100644 --- a/src/Kestrel.Transport.Libuv/Internal/Networking/UvWriteReq.cs +++ b/src/Kestrel.Transport.Libuv/Internal/Networking/UvWriteReq.cs @@ -5,7 +5,6 @@ using System; using System.Buffers; using System.Collections.Generic; using System.Runtime.InteropServices; -using System.IO.Pipelines; using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking diff --git a/src/Kestrel.Transport.Sockets/Internal/SocketConnection.cs b/src/Kestrel.Transport.Sockets/Internal/SocketConnection.cs index 2ab964e894..227101d1f9 100644 --- a/src/Kestrel.Transport.Sockets/Internal/SocketConnection.cs +++ b/src/Kestrel.Transport.Sockets/Internal/SocketConnection.cs @@ -3,10 +3,8 @@ using System; using System.Buffers; -using System.Collections.Generic; using System.Diagnostics; using System.IO; -using System.IO.Pipelines; using System.Net; using System.Net.Sockets; using System.Threading.Tasks; diff --git a/src/Kestrel.Transport.Sockets/Internal/SocketSender.cs b/src/Kestrel.Transport.Sockets/Internal/SocketSender.cs index be71f3f9df..ef88ce8731 100644 --- a/src/Kestrel.Transport.Sockets/Internal/SocketSender.cs +++ b/src/Kestrel.Transport.Sockets/Internal/SocketSender.cs @@ -5,7 +5,6 @@ using System; using System.Buffers; using System.Collections.Generic; using System.Diagnostics; -using System.IO.Pipelines; using System.Net.Sockets; using System.Runtime.InteropServices; diff --git a/src/Kestrel.Transport.Sockets/SocketTransport.cs b/src/Kestrel.Transport.Sockets/SocketTransport.cs index 6cec602c36..cd729a5eb1 100644 --- a/src/Kestrel.Transport.Sockets/SocketTransport.cs +++ b/src/Kestrel.Transport.Sockets/SocketTransport.cs @@ -4,7 +4,6 @@ using System; using System.Buffers; using System.Diagnostics; -using System.IO.Pipelines; using System.Net; using System.Net.Sockets; using System.Runtime.ExceptionServices; diff --git a/src/Kestrel.Transport.Sockets/SocketTransportOptions.cs b/src/Kestrel.Transport.Sockets/SocketTransportOptions.cs index be34d292d8..05bae64609 100644 --- a/src/Kestrel.Transport.Sockets/SocketTransportOptions.cs +++ b/src/Kestrel.Transport.Sockets/SocketTransportOptions.cs @@ -1,9 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; -using System.Text; namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets { diff --git a/src/Protocols.Abstractions/ConnectionDelegate.cs b/src/Protocols.Abstractions/ConnectionDelegate.cs index a0656c0496..ff0e4d75af 100644 --- a/src/Protocols.Abstractions/ConnectionDelegate.cs +++ b/src/Protocols.Abstractions/ConnectionDelegate.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Threading.Tasks; +using System.Threading.Tasks; namespace Microsoft.AspNetCore.Protocols { diff --git a/src/Protocols.Abstractions/DefaultConnectionContext.cs b/src/Protocols.Abstractions/DefaultConnectionContext.cs index cc75702caf..d38657061c 100644 --- a/src/Protocols.Abstractions/DefaultConnectionContext.cs +++ b/src/Protocols.Abstractions/DefaultConnectionContext.cs @@ -1,5 +1,4 @@ -using System.Buffers; -using System.IO.Pipelines; +using System.IO.Pipelines; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Protocols.Features; diff --git a/src/Protocols.Abstractions/DuplexPipe.cs b/src/Protocols.Abstractions/DuplexPipe.cs index a354af53e9..4e26d458ec 100644 --- a/src/Protocols.Abstractions/DuplexPipe.cs +++ b/src/Protocols.Abstractions/DuplexPipe.cs @@ -1,7 +1,4 @@ -using System; -using System.Buffers; -using System.Collections.Generic; -using System.Text; +using System.Buffers; namespace System.IO.Pipelines { diff --git a/src/Protocols.Abstractions/Features/IConnectionIdFeature.cs b/src/Protocols.Abstractions/Features/IConnectionIdFeature.cs index 1b94c5b4cc..ab1c09e3db 100644 --- a/src/Protocols.Abstractions/Features/IConnectionIdFeature.cs +++ b/src/Protocols.Abstractions/Features/IConnectionIdFeature.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace Microsoft.AspNetCore.Protocols.Features +namespace Microsoft.AspNetCore.Protocols.Features { public interface IConnectionIdFeature { diff --git a/src/Protocols.Abstractions/IConnectionBuilder.cs b/src/Protocols.Abstractions/IConnectionBuilder.cs index 7f75d27643..15a028c5db 100644 --- a/src/Protocols.Abstractions/IConnectionBuilder.cs +++ b/src/Protocols.Abstractions/IConnectionBuilder.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; namespace Microsoft.AspNetCore.Protocols { diff --git a/test/Kestrel.Core.Tests/AddressBinderTests.cs b/test/Kestrel.Core.Tests/AddressBinderTests.cs index d548fa70ba..9308c8c14b 100644 --- a/test/Kestrel.Core.Tests/AddressBinderTests.cs +++ b/test/Kestrel.Core.Tests/AddressBinderTests.cs @@ -10,7 +10,6 @@ using Microsoft.AspNetCore.Server.Kestrel.Core.Internal; using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal; using Microsoft.AspNetCore.Testing; using Microsoft.Extensions.Logging.Abstractions; -using Moq; using Xunit; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests diff --git a/test/Kestrel.Core.Tests/HPackEncoderTests.cs b/test/Kestrel.Core.Tests/HPackEncoderTests.cs index de07eeec72..20313c6a90 100644 --- a/test/Kestrel.Core.Tests/HPackEncoderTests.cs +++ b/test/Kestrel.Core.Tests/HPackEncoderTests.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.HPack; using Xunit; diff --git a/test/Kestrel.Core.Tests/Http1ConnectionTests.cs b/test/Kestrel.Core.Tests/Http1ConnectionTests.cs index 75c7f4f560..56711ed1b3 100644 --- a/test/Kestrel.Core.Tests/Http1ConnectionTests.cs +++ b/test/Kestrel.Core.Tests/Http1ConnectionTests.cs @@ -5,14 +5,12 @@ using System; using System.Buffers; using System.Collections; using System.Collections.Generic; -using System.Collections.Sequences; using System.IO; using System.IO.Pipelines; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; -using Microsoft.AspNetCore.Hosting.Server; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Server.Kestrel.Core.Features; diff --git a/test/Kestrel.Core.Tests/HttpParserTests.cs b/test/Kestrel.Core.Tests/HttpParserTests.cs index 48f3406533..e9c8e07500 100644 --- a/test/Kestrel.Core.Tests/HttpParserTests.cs +++ b/test/Kestrel.Core.Tests/HttpParserTests.cs @@ -3,7 +3,6 @@ using System; using System.Buffers; -using System.IO.Pipelines; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/test/Kestrel.Core.Tests/HttpRequestHeadersTests.cs b/test/Kestrel.Core.Tests/HttpRequestHeadersTests.cs index 5f1113e9c2..1eef7c792c 100644 --- a/test/Kestrel.Core.Tests/HttpRequestHeadersTests.cs +++ b/test/Kestrel.Core.Tests/HttpRequestHeadersTests.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Generic; using System.Text; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Server.Kestrel.Core; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; using Microsoft.Extensions.Primitives; using Xunit; diff --git a/test/Kestrel.Core.Tests/IntegerDecoderTests.cs b/test/Kestrel.Core.Tests/IntegerDecoderTests.cs index c9e259b0ff..b89b0f84a3 100644 --- a/test/Kestrel.Core.Tests/IntegerDecoderTests.cs +++ b/test/Kestrel.Core.Tests/IntegerDecoderTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.HPack; using Xunit; diff --git a/test/Kestrel.Core.Tests/IntegerEncoderTests.cs b/test/Kestrel.Core.Tests/IntegerEncoderTests.cs index 2c4811c81c..c667cc6cee 100644 --- a/test/Kestrel.Core.Tests/IntegerEncoderTests.cs +++ b/test/Kestrel.Core.Tests/IntegerEncoderTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.HPack; using Xunit; diff --git a/test/Kestrel.Core.Tests/KestrelEventSourceTests.cs b/test/Kestrel.Core.Tests/KestrelEventSourceTests.cs index 4f1944387b..7f407c92fb 100644 --- a/test/Kestrel.Core.Tests/KestrelEventSourceTests.cs +++ b/test/Kestrel.Core.Tests/KestrelEventSourceTests.cs @@ -4,7 +4,6 @@ using System; using System.Diagnostics.Tracing; using System.Reflection; -using Microsoft.AspNetCore.Server.Kestrel.Core; using Xunit; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests diff --git a/test/Kestrel.Core.Tests/PipeOptionsTests.cs b/test/Kestrel.Core.Tests/PipeOptionsTests.cs index 519c266d5b..ff3ab4ce27 100644 --- a/test/Kestrel.Core.Tests/PipeOptionsTests.cs +++ b/test/Kestrel.Core.Tests/PipeOptionsTests.cs @@ -2,10 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Buffers; -using System.Collections.Generic; -using System.IO.Pipelines; using System.Threading; -using Microsoft.AspNetCore.Server.Kestrel.Core.Adapter.Internal; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure; using Microsoft.AspNetCore.Testing; diff --git a/test/Kestrel.Core.Tests/ServerAddressTests.cs b/test/Kestrel.Core.Tests/ServerAddressTests.cs index 9c9c7a654b..94dc2ee3ab 100644 --- a/test/Kestrel.Core.Tests/ServerAddressTests.cs +++ b/test/Kestrel.Core.Tests/ServerAddressTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using Microsoft.AspNetCore.Server.Kestrel.Core; using Xunit; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests diff --git a/test/Kestrel.FunctionalTests/AddressRegistrationTests.cs b/test/Kestrel.FunctionalTests/AddressRegistrationTests.cs index 9e83cde243..6e66f401bc 100644 --- a/test/Kestrel.FunctionalTests/AddressRegistrationTests.cs +++ b/test/Kestrel.FunctionalTests/AddressRegistrationTests.cs @@ -18,7 +18,6 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Server.Kestrel.Core; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure; -using Microsoft.AspNetCore.Server.Kestrel.Https; using Microsoft.AspNetCore.Testing; using Microsoft.AspNetCore.Testing.xunit; using Microsoft.Extensions.Logging; diff --git a/test/Kestrel.FunctionalTests/BadHttpRequestTests.cs b/test/Kestrel.FunctionalTests/BadHttpRequestTests.cs index be64faeaf4..29b8164fc2 100644 --- a/test/Kestrel.FunctionalTests/BadHttpRequestTests.cs +++ b/test/Kestrel.FunctionalTests/BadHttpRequestTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/test/Kestrel.FunctionalTests/HttpsTests.cs b/test/Kestrel.FunctionalTests/HttpsTests.cs index 24959f9c7f..152823f6a9 100644 --- a/test/Kestrel.FunctionalTests/HttpsTests.cs +++ b/test/Kestrel.FunctionalTests/HttpsTests.cs @@ -14,10 +14,8 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Server.Kestrel.Core; -using Microsoft.AspNetCore.Server.Kestrel.Core.Internal; using Microsoft.AspNetCore.Server.Kestrel.Https; using Microsoft.AspNetCore.Server.Kestrel.Https.Internal; -using Microsoft.AspNetCore.Server.Kestrel.Internal; using Microsoft.AspNetCore.Testing; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; diff --git a/test/Kestrel.FunctionalTests/KeepAliveTimeoutTests.cs b/test/Kestrel.FunctionalTests/KeepAliveTimeoutTests.cs index 5090147065..5d4a3c553f 100644 --- a/test/Kestrel.FunctionalTests/KeepAliveTimeoutTests.cs +++ b/test/Kestrel.FunctionalTests/KeepAliveTimeoutTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Diagnostics; using System.Text; using System.Threading; using System.Threading.Tasks; diff --git a/test/Kestrel.FunctionalTests/RequestTests.cs b/test/Kestrel.FunctionalTests/RequestTests.cs index 504a93104d..ff063b35bf 100644 --- a/test/Kestrel.FunctionalTests/RequestTests.cs +++ b/test/Kestrel.FunctionalTests/RequestTests.cs @@ -22,7 +22,6 @@ using Microsoft.AspNetCore.Server.Kestrel.Core; using Microsoft.AspNetCore.Server.Kestrel.Core.Features; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure; -using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal; using Microsoft.AspNetCore.Testing; using Microsoft.AspNetCore.Testing.xunit; using Microsoft.Extensions.Logging; diff --git a/test/Kestrel.FunctionalTests/TestHelpers/NetworkIsReachableAttribute.cs b/test/Kestrel.FunctionalTests/TestHelpers/NetworkIsReachableAttribute.cs index a17a321cba..9b62c0689b 100644 --- a/test/Kestrel.FunctionalTests/TestHelpers/NetworkIsReachableAttribute.cs +++ b/test/Kestrel.FunctionalTests/TestHelpers/NetworkIsReachableAttribute.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Linq; using System.Net; using System.Net.Sockets; using Microsoft.AspNetCore.Testing; diff --git a/test/Kestrel.Transport.Libuv.Tests/MultipleLoopTests.cs b/test/Kestrel.Transport.Libuv.Tests/MultipleLoopTests.cs index e5972077c9..b4dd9c64ae 100644 --- a/test/Kestrel.Transport.Libuv.Tests/MultipleLoopTests.cs +++ b/test/Kestrel.Transport.Libuv.Tests/MultipleLoopTests.cs @@ -3,14 +3,12 @@ using System; using System.Buffers; -using System.IO.Pipelines; using System.Net; using System.Net.Sockets; using System.Runtime.InteropServices; using System.Threading; using Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal; using Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking; -using Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Tests.TestHelpers; using Microsoft.AspNetCore.Testing; using Xunit; diff --git a/test/Kestrel.Transport.Libuv.Tests/NetworkingTests.cs b/test/Kestrel.Transport.Libuv.Tests/NetworkingTests.cs index bf25af4392..24a1bf36a7 100644 --- a/test/Kestrel.Transport.Libuv.Tests/NetworkingTests.cs +++ b/test/Kestrel.Transport.Libuv.Tests/NetworkingTests.cs @@ -9,7 +9,6 @@ using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal; using Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking; -using System.IO.Pipelines; using Microsoft.AspNetCore.Testing; using Xunit; diff --git a/test/Kestrel.Transport.Libuv.Tests/TestHelpers/TestLibuvTransportContext.cs b/test/Kestrel.Transport.Libuv.Tests/TestHelpers/TestLibuvTransportContext.cs index 9f608c64b9..d764eaf940 100644 --- a/test/Kestrel.Transport.Libuv.Tests/TestHelpers/TestLibuvTransportContext.cs +++ b/test/Kestrel.Transport.Libuv.Tests/TestHelpers/TestLibuvTransportContext.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal; using Microsoft.AspNetCore.Testing; diff --git a/test/shared/PassThroughConnectionAdapter.cs b/test/shared/PassThroughConnectionAdapter.cs index c018e49ad7..5f10736595 100644 --- a/test/shared/PassThroughConnectionAdapter.cs +++ b/test/shared/PassThroughConnectionAdapter.cs @@ -3,7 +3,6 @@ using System.IO; using System.Threading.Tasks; -using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Server.Kestrel.Core.Adapter.Internal; namespace Microsoft.AspNetCore.Testing diff --git a/test/shared/TestServiceContext.cs b/test/shared/TestServiceContext.cs index 1109cf5f05..9739022477 100644 --- a/test/shared/TestServiceContext.cs +++ b/test/shared/TestServiceContext.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using Microsoft.AspNetCore.Server.Kestrel.Core; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; diff --git a/tools/CodeGenerator/HttpProtocolFeatureCollection.cs b/tools/CodeGenerator/HttpProtocolFeatureCollection.cs index b960180f26..3865658e70 100644 --- a/tools/CodeGenerator/HttpProtocolFeatureCollection.cs +++ b/tools/CodeGenerator/HttpProtocolFeatureCollection.cs @@ -4,9 +4,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.AspNetCore.Http.Features; -using Microsoft.AspNetCore.Http.Features.Authentication; -//using Microsoft.AspNetCore.Server.Kestrel.Core.Features; namespace CodeGenerator {