Skip to content

Commit 8cc9f9d

Browse files
committed
Move SslDuplexPipe
1 parent 51502e2 commit 8cc9f9d

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

src/Servers/Kestrel/Core/src/Middleware/HttpsConnectionMiddleware.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -291,19 +291,5 @@ private static X509Certificate2 ConvertToX509Certificate2(X509Certificate certif
291291

292292
return new X509Certificate2(certificate);
293293
}
294-
295-
private class SslDuplexPipe : DuplexPipeStreamAdapter<SslStream>
296-
{
297-
public SslDuplexPipe(IDuplexPipe transport, StreamPipeReaderOptions readerOptions, StreamPipeWriterOptions writerOptions)
298-
: this(transport, readerOptions, writerOptions, s => new SslStream(s))
299-
{
300-
301-
}
302-
303-
public SslDuplexPipe(IDuplexPipe transport, StreamPipeReaderOptions readerOptions, StreamPipeWriterOptions writerOptions, Func<Stream, SslStream> factory) :
304-
base(transport, readerOptions, writerOptions, factory)
305-
{
306-
}
307-
}
308294
}
309295
}

src/Shared/Http2cat/Http2CatHostedService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using Microsoft.AspNetCore.Connections.Features;
1515
using Microsoft.AspNetCore.Http;
1616
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal;
17+
using Microsoft.AspNetCore.Server.Kestrel.Https.Internal;
1718
using Microsoft.Extensions.Hosting;
1819
using Microsoft.Extensions.Logging;
1920
using Microsoft.Extensions.Options;

src/Shared/Http2cat/SslDuplexPipe.cs renamed to src/Shared/ServerInfrastructure/SslDuplexPipe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Net.Security;
88
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal;
99

10-
namespace Microsoft.AspNetCore.Http2Cat
10+
namespace Microsoft.AspNetCore.Server.Kestrel.Https.Internal
1111
{
1212
internal class SslDuplexPipe : DuplexPipeStreamAdapter<SslStream>
1313
{

0 commit comments

Comments
 (0)