19 types derived from ConnectionContext
ClientSample (1)
InMemory.FunctionalTests (2)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.AspNetCore.SignalR.Client.Tests (2)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Tests (1)
264 references to ConnectionContext
Aspire.Dashboard (1)
ClientSample (2)
http2cat (2)
IIS.FunctionalTests (2)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IISExpress.FunctionalTests (2)
InMemory.FunctionalTests (33)
Http3\Http3ConnectionTests.cs (11)
433var streamContext1 = await MakeRequestAsync(0, headers, sendData: true, waitForServerDispose: true);
434var streamContext2 = await MakeRequestAsync(1, headers, sendData: true, waitForServerDispose: true);
460var streamContext1 = await MakeRequestAsync(0, headers, sendData: true, waitForServerDispose: true);
464var streamContext2 = await MakeRequestAsync(1, headers, sendData: true, waitForServerDispose: true);
500var streamContext1 = await MakeRequestAsync(0, requestHeaders1, sendData: true, waitForServerDispose: true);
507var streamContext2 = await MakeRequestAsync(1, requestHeaders2, sendData: true, waitForServerDispose: true);
534ConnectionContext first = null;
535ConnectionContext last = null;
540var streamContext = await MakeRequestAsync(i, headers, sendData: true, waitForServerDispose: true);
791public override async ValueTask<ConnectionContext> AcceptAsync(CancellationToken cancellationToken = default)
811private async Task<ConnectionContext> MakeRequestAsync(int index, KeyValuePair<string, string>[] headers, bool sendData, bool waitForServerDispose)
Microsoft.AspNetCore.Connections.Abstractions (17)
ConnectionBuilderExtensions.cs (6)
32/// If you aren't calling the next function, use <see cref="Run(IConnectionBuilder, Func{ConnectionContext, Task})"/> instead.
34/// Prefer using <see cref="Use(IConnectionBuilder, Func{ConnectionContext, ConnectionDelegate, Task})"/> for better performance as shown below:
46public static IConnectionBuilder Use(this IConnectionBuilder connectionBuilder, Func<ConnectionContext, Func<Task>, Task> middleware)
60/// If you aren't calling the next function, use <see cref="Run(IConnectionBuilder, Func{ConnectionContext, Task})"/> instead.
65public static IConnectionBuilder Use(this IConnectionBuilder connectionBuilder, Func<ConnectionContext, ConnectionDelegate, Task> middleware)
76public static IConnectionBuilder Run(this IConnectionBuilder connectionBuilder, Func<ConnectionContext, Task> middleware)
Microsoft.AspNetCore.Http.Connections (4)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.Http.Connections.Tests (15)
Microsoft.AspNetCore.Http.Features (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Server.Kestrel.Core (36)
Middleware\HttpsConnectionMiddleware.cs (4)
41private readonly Func<ConnectionContext, string?, X509Certificate2?>? _serverCertificateSelector;
134public async Task OnConnectionAsync(ConnectionContext context)
316private Task DoOptionsBasedHandshakeAsync(ConnectionContext context, SslStream sslStream, Core.Internal.TlsConnectionFeature feature, CancellationToken cancellationToken)
441var (middleware, context, feature, metricsContext) = (ValueTuple<HttpsConnectionMiddleware, ConnectionContext, Core.Internal.TlsConnectionFeature, ConnectionMetricsContext>)state!;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (35)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (14)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (4)
Microsoft.AspNetCore.SignalR.Client.Core (6)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
Microsoft.AspNetCore.SignalR.Client.Tests (7)
Microsoft.AspNetCore.SignalR.Core (6)
Microsoft.AspNetCore.SignalR.Microbenchmarks (4)
Microsoft.AspNetCore.SignalR.Specification.Tests (3)
Microsoft.AspNetCore.SignalR.Tests (5)
Microsoft.AspNetCore.SignalR.Tests.Utils (6)
SignalR.Client.FunctionalTestApp (1)
SignalRSamples (11)
SocialWeather (16)
Sockets.FunctionalTests (2)
WebTransportInteractiveSampleApp (4)
WebTransportSampleApp (1)