12 instantiations of DefaultConnectionContext
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (2)
152var connectionContext = new DefaultConnectionContext(); 214streamContext: new DefaultConnectionContext(),
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (2)
152var connectionContext = new DefaultConnectionContext(); 214streamContext: new DefaultConnectionContext(),
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (2)
152var connectionContext = new DefaultConnectionContext(); 214streamContext: new DefaultConnectionContext(),
Microsoft.AspNetCore.SignalR.Microbenchmarks (4)
HubConnectionContextBenchmark.cs (1)
41var connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), _pipe, _pipe);
HubConnectionReceiveBenchmark.cs (1)
79var connection = new DefaultConnectionContext();
HubConnectionSendBenchmark.cs (1)
59var connection = new DefaultConnectionContext();
HubConnectionStartBenchmark.cs (1)
45var connection = new DefaultConnectionContext();
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
46Connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Transport, pair.Application);
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
46Connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Transport, pair.Application);
31 references to DefaultConnectionContext
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
152var connectionContext = new DefaultConnectionContext();
Microsoft.AspNetCore.Connections.Abstractions (2)
DefaultConnectionContext.cs (2)
30/// Creates the <see cref="DefaultConnectionContext"/> without Pipes to avoid upfront allocations. 39/// Creates the <see cref="DefaultConnectionContext"/> without Pipes to avoid upfront allocations.
Microsoft.AspNetCore.Http.Connections.Tests (9)
LongPollingTests.cs (4)
26var connection = new DefaultConnectionContext("foo", pair.Transport, pair.Application); 46var connection = new DefaultConnectionContext("foo", pair.Transport, pair.Application); 68var connection = new DefaultConnectionContext("foo", pair.Transport, pair.Application); 91var connection = new DefaultConnectionContext("foo", pair.Transport, pair.Application);
ServerSentEventsTests.cs (5)
25var connection = new DefaultConnectionContext("foo", pair.Transport, pair.Application); 46var connection = new DefaultConnectionContext("foo", pair.Transport, pair.Application); 67var connection = new DefaultConnectionContext("foo", pair.Transport, pair.Application); 89var connection = new DefaultConnectionContext("foo", pair.Transport, pair.Application); 117var connection = new DefaultConnectionContext("foo", pair.Transport, pair.Application);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
ConnectionDispatcherTests.cs (7)
33var connection = new Mock<DefaultConnectionContext> { CallBase = true }.Object; 77var connection = new Mock<DefaultConnectionContext> { CallBase = true }.Object; 98var connection = new Mock<DefaultConnectionContext> { CallBase = true }.Object; 118private static KestrelConnection<ConnectionContext> CreateKestrelConnection(TestServiceContext serviceContext, DefaultConnectionContext connection, TransportConnectionManager transportConnectionManager, Func<ConnectionContext, Task> connectionDelegate = null)
HttpConnectionManagerTests.cs (1)
46var mock = new Mock<DefaultConnectionContext>() { CallBase = true };
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
152var connectionContext = new DefaultConnectionContext();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
152var connectionContext = new DefaultConnectionContext();
Microsoft.AspNetCore.SignalR.Microbenchmarks (6)
BroadcastBenchmark.cs (1)
45var connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Application, pair.Transport);
DefaultHubDispatcherBenchmark.cs (1)
43var connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Application, pair.Transport);
HubConnectionContextBenchmark.cs (1)
41var connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), _pipe, _pipe);
HubConnectionReceiveBenchmark.cs (1)
79var connection = new DefaultConnectionContext();
HubConnectionSendBenchmark.cs (1)
59var connection = new DefaultConnectionContext();
HubConnectionStartBenchmark.cs (1)
45var connection = new DefaultConnectionContext();
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
33public DefaultConnectionContext Connection { get; }
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTests.cs (1)
5283private static void UpdateConnectionPair(DefaultConnectionContext connection)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
33public DefaultConnectionContext Connection { get; }