3 types derived from TransportContext
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpTransportContext.cs (1)
11internal sealed class WinHttpTransportContext : TransportContext
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
47private sealed class Context : TransportContext
System.Net.Security (1)
System\Net\SslStreamContext.cs (1)
10internal sealed class SslStreamContext : TransportContext
75 references to TransportContext
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelBindingUtility.cs (1)
40public static ChannelBinding GetToken(TransportContext context)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (2)
188protected override Task SerializeToStreamAsync(Stream stream, TransportContext context) 232protected override async Task SerializeToStreamAsync(Stream stream, TransportContext context)
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\SendUtils.cs (1)
100protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context)
Microsoft.DotNet.Cli.Telemetry (1)
Implementation\HttpTelemetryUploadTransport.cs (1)
91protected override async Task SerializeToStreamAsync(Stream stream, TransportContext? context)
netstandard (1)
netstandard.cs (1)
1289[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.TransportContext))]
NuGet.Protocol (1)
HttpSource\HttpRequestMessageExtensions.cs (1)
70protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context)
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
778[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.TransportContext))]
System.Net.Http (52)
System\Net\Http\BrotliCompressedContent.cs (3)
57protected override void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) => 60protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 63protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) =>
System\Net\Http\ByteArrayContent.cs (3)
40protected override void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) => 43protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 46protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) =>
System\Net\Http\CompressedContentCore.cs (2)
42public static void SerializeToStream(HttpContent originalContent, Stream compressionStream, TransportContext? context, CancellationToken cancellationToken) 50public static async Task SerializeToStreamAsync(HttpContent originalContent, Stream compressionStream, TransportContext? context, CancellationToken cancellationToken)
System\Net\Http\EmptyContent.cs (3)
19protected override void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) 22protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 25protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) =>
System\Net\Http\FormUrlEncodedContent.cs (1)
89protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) =>
System\Net\Http\GZipCompressedContent.cs (3)
54protected override void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) => 57protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 60protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) =>
System\Net\Http\HttpContent.cs (7)
299protected abstract Task SerializeToStreamAsync(Stream stream, TransportContext? context); 304protected virtual void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) 309protected virtual Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) => 320public void CopyTo(Stream stream, TransportContext? context, CancellationToken cancellationToken) 347public Task CopyToAsync(Stream stream, TransportContext? context) => 350public Task CopyToAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) 376internal ValueTask InternalCopyToAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken)
System\Net\Http\MultipartContent.cs (4)
158protected override void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) 193protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 196protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) => 202private protected async Task SerializeToStreamAsyncCore(Stream stream, TransportContext? context, CancellationToken cancellationToken)
System\Net\Http\MultipartFormDataContent.cs (1)
66protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) =>
System\Net\Http\ReadOnlyMemoryContent.cs (3)
17protected override void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) 22protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 25protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) =>
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (2)
578private async ValueTask<(Stream, TransportContext?, Activity?, IPEndPoint?, long)> ConnectAsync(HttpRequestMessage request, bool async, bool isForHttp2, CancellationToken cancellationToken) 583TransportContext? transportContext = null;
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (2)
296(Stream stream, TransportContext? transportContext, Activity? activity, IPEndPoint? remoteEndPoint, long connectionId) = await ConnectAsync(request, async, isForHttp2: false, cancellationToken).ConfigureAwait(false); 300private async ValueTask<HttpConnection> ConstructHttp11ConnectionAsync(bool async, Stream stream, TransportContext? transportContext, HttpRequestMessage request, Activity? activity, IPEndPoint? remoteEndPoint, long connectionId, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (2)
196(Stream stream, TransportContext? transportContext, Activity? activity, IPEndPoint? remoteEndPoint, long connectionId) = await ConnectAsync(queueItem.Request, true, isForHttp2: true, cts.Token).ConfigureAwait(false); 310private async Task HandleHttp11Downgrade(HttpRequestMessage request, Stream stream, TransportContext? transportContext, Activity? activity, IPEndPoint? remoteEndPoint, long connectionId, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (3)
164protected override void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) 170protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 173protected override async Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (3)
46private readonly TransportContext? _transportContext; 75TransportContext? transportContext, 296public TransportContext? TransportContext => _transportContext;
System\Net\Http\SocketsHttpHandler\HttpConnectionResponseContent.cs (3)
36protected override void SerializeToStream(Stream stream, TransportContext? context, 48protected sealed override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 51protected sealed override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken)
System\Net\Http\StreamContent.cs (3)
48protected override void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) 56protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 59protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) =>
System\Net\Http\StringContent.cs (1)
105protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) =>
System\Net\Http\ZstandardCompressedContent.cs (3)
89protected override void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) => 92protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 95protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken) =>
System.Net.Http.Json (3)
System\Net\Http\Json\JsonContent.cs (1)
104protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context)
System\Net\Http\Json\JsonContent.netcoreapp.cs (2)
14protected override void SerializeToStream(Stream stream, TransportContext? context, CancellationToken cancellationToken) 26protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken)
System.Net.Http.WinHttpHandler (2)
System\Net\Http\NoWriteNoSeekStreamContent.cs (2)
28protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) => 37Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken)
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
370public TransportContext TransportContext => new Context();
System.Net.Requests (4)
System\Net\HttpWebRequest.cs (2)
1134public Stream EndGetRequestStream(IAsyncResult asyncResult, out TransportContext? context) 1140public Stream GetRequestStream(out TransportContext? context)
System\Net\RequestStreamContent.cs (2)
14protected override Task SerializeToStreamAsync(Stream stream, TransportContext? context) 18protected override async Task SerializeToStreamAsync(Stream stream, TransportContext? context, CancellationToken cancellationToken)
System.Net.Security (2)
System\Net\Security\NegotiateAuthenticationClientOptions.cs (1)
31/// <see cref="TransportContext.GetChannelBinding" /> method.
System\Net\Security\SslStream.cs (1)
310public TransportContext TransportContext => new SslStreamContext(this);
System.ServiceModel.Http (2)
System\ServiceModel\Channels\MessageContent.cs (2)
203protected override async Task SerializeToStreamAsync(Stream stream, TransportContext context) 253protected override async Task SerializeToStreamAsync(Stream stream, TransportContext context)
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\ChannelBindingUtility.cs (1)
21public static ChannelBinding GetToken(TransportContext context)