Skip to content

Commit 7d4203e

Browse files
committed
Cleanup, refs
1 parent 787d518 commit 7d4203e

File tree

5 files changed

+13
-23
lines changed

5 files changed

+13
-23
lines changed

src/Servers/Kestrel/Transport.Sockets/ref/Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.netcoreapp.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,13 @@ public SocketTransportOptions() { }
2626
public bool NoDelay { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute] set { } }
2727
}
2828
}
29+
namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Client
30+
{
31+
public partial class SocketConnectionFactory : Microsoft.AspNetCore.Connections.IConnectionFactory, System.IAsyncDisposable
32+
{
33+
public SocketConnectionFactory(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) { }
34+
[System.Diagnostics.DebuggerStepThroughAttribute]
35+
public System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Connections.ConnectionContext> ConnectAsync(System.Net.EndPoint endpoint, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
36+
public System.Threading.Tasks.ValueTask DisposeAsync() { throw null; }
37+
}
38+
}

src/Servers/Kestrel/samples/http2cat/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace http2cat
1313
{
14-
partial class Program
14+
public class Program
1515
{
16-
static async Task Main(string[] args)
16+
public static async Task Main(string[] args)
1717
{
1818
using var host = new HostBuilder()
1919
.ConfigureLogging(loggingBuilder =>
@@ -26,7 +26,7 @@ static async Task Main(string[] args)
2626
await host.RunAsync();
2727
}
2828

29-
public static async Task RunTestCase(Http2Utilities h2Connection)
29+
internal static async Task RunTestCase(Http2Utilities h2Connection)
3030
{
3131
await h2Connection.InitializeConnectionAsync();
3232

src/Servers/Kestrel/samples/http2cat/http2cat.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<Compile Include="$(SharedSourceRoot)Http2\**\*.cs" LinkBase="Shared\Http2\" />
1111
<Compile Include="$(SharedSourceRoot)Http2cat\**\*.cs" LinkBase="Shared\Http2cat" />
1212
<Compile Include="$(SharedSourceRoot)ServerInfrastructure\**\*.cs" LinkBase="Shared\" />
13-
<Compile Remove="TaskTimeoutExtensions.cs" />
1413
<Compile Include="$(SharedSourceRoot)TaskToApm.cs" Link="Shared\TaskToApm.cs" />
1514
</ItemGroup>
1615

src/Shared/Http2cat/Http2ManualFrameWriter.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -156,25 +156,7 @@ public void WriteResponseHeaders(int streamId, int statusCode, Http2HeadersFrame
156156
}
157157
}
158158
}
159-
/*
160-
public ValueTask<FlushResult> WriteResponseTrailers(int streamId, HttpResponseTrailers headers)
161-
{
162-
lock (_writeLock)
163-
{
164-
if (_completed)
165-
{
166-
return default;
167-
}
168-
169-
_outgoingFrame.PrepareHeaders(Http2HeadersFrameFlags.END_STREAM, streamId);
170-
var buffer = _headerEncodingBuffer.AsSpan();
171-
var done = _hpackEncoder.BeginEncode(EnumerateHeaders(headers), buffer, out var payloadLength);
172-
FinishWritingHeaders(streamId, payloadLength, done);
173159

174-
return TimeFlushUnsynchronizedAsync();
175-
}
176-
}
177-
*/
178160
private void FinishWritingHeaders(int streamId, int payloadLength, bool done)
179161
{
180162
var buffer = _headerEncodingBuffer.AsSpan();

src/Shared/Http2cat/SslDuplexPipe.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ internal class SslDuplexPipe : DuplexPipeStreamAdapter<SslStream>
1414
public SslDuplexPipe(IDuplexPipe transport, StreamPipeReaderOptions readerOptions, StreamPipeWriterOptions writerOptions)
1515
: this(transport, readerOptions, writerOptions, s => new SslStream(s))
1616
{
17-
1817
}
1918

2019
public SslDuplexPipe(IDuplexPipe transport, StreamPipeReaderOptions readerOptions, StreamPipeWriterOptions writerOptions, Func<Stream, SslStream> factory) :

0 commit comments

Comments
 (0)