4 implementations of IMultiplexedConnectionListenerFactory
InMemory.FunctionalTests (1)
TestTransport\MockMultiplexedConnectionListenerFactory.cs (1)
13internal class MockMultiplexedConnectionListenerFactory : IMultiplexedConnectionListenerFactory
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerTests.cs (2)
1029private class NonBindableMultiplexedTransportFactory : IMultiplexedConnectionListenerFactory, IConnectionListenerFactorySelector 1039private class MockMultiplexedTransportFactory : IMultiplexedConnectionListenerFactory
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
QuicTransportFactory.cs (1)
16internal sealed class QuicTransportFactory : IMultiplexedConnectionListenerFactory, IConnectionListenerFactorySelector
34 references to IMultiplexedConnectionListenerFactory
InMemory.FunctionalTests (9)
HttpsTests.cs (6)
453services.AddSingleton<IMultiplexedConnectionListenerFactory>(multiplexedConnectionListenerFactory); 497services.AddSingleton<IMultiplexedConnectionListenerFactory>(multiplexedConnectionListenerFactory); 537services.AddSingleton<IMultiplexedConnectionListenerFactory>(multiplexedConnectionListenerFactory); 573services.AddSingleton<IMultiplexedConnectionListenerFactory>(multiplexedConnectionListenerFactory); 612services.AddSingleton<IMultiplexedConnectionListenerFactory>(multiplexedConnectionListenerFactory); 662services.AddSingleton<IMultiplexedConnectionListenerFactory>(multiplexedConnectionListenerFactory);
ResponseTests.cs (2)
4418services.AddSingleton<IMultiplexedConnectionListenerFactory>(new MockMultiplexedConnectionListenerFactory()); 4517services.AddSingleton<IMultiplexedConnectionListenerFactory>(new MockMultiplexedConnectionListenerFactory());
TestTransport\TestServer.cs (1)
100sp.GetServices<IMultiplexedConnectionListenerFactory>(),
Microsoft.AspNetCore.Connections.Abstractions (1)
IConnectionListenerFactorySelector.cs (1)
12/// This interface should be implemented by <see cref="IConnectionListenerFactory"/> and <see cref="IMultiplexedConnectionListenerFactory"/>
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Infrastructure\TransportManager.cs (5)
17private readonly List<IMultiplexedConnectionListenerFactory> _multiplexedTransportFactories; 23List<IMultiplexedConnectionListenerFactory> multiplexedTransportFactories, 69throw new InvalidOperationException($"Cannot bind with {nameof(MultiplexedConnectionDelegate)} no {nameof(IMultiplexedConnectionListenerFactory)} is registered."); 77foreach (var multiplexedTransportFactory in _multiplexedTransportFactories) 88throw new InvalidOperationException($"No registered {nameof(IMultiplexedConnectionListenerFactory)} supports endpoint {endPoint.GetType().Name}: {endPoint}");
Internal\KestrelServerImpl.cs (3)
25private readonly List<IMultiplexedConnectionListenerFactory> _multiplexedTransportFactories; 39IEnumerable<IMultiplexedConnectionListenerFactory> multiplexedFactories, 51IEnumerable<IMultiplexedConnectionListenerFactory> multiplexedFactories,
KestrelServer.cs (1)
36Array.Empty<IMultiplexedConnectionListenerFactory>(),
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
KestrelServerTests.cs (12)
293IEnumerable<IMultiplexedConnectionListenerFactory> multiplexedFactories, 322Array.Empty<IMultiplexedConnectionListenerFactory>())); 333Array.Empty<IMultiplexedConnectionListenerFactory>()); 347Array.Empty<IMultiplexedConnectionListenerFactory>()); 367Array.Empty<IMultiplexedConnectionListenerFactory>()); 388new List<IMultiplexedConnectionListenerFactory> { new NonBindableMultiplexedTransportFactory() }); 412new List<IMultiplexedConnectionListenerFactory> { transportFactory, new NonBindableMultiplexedTransportFactory() }); 438new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 465new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 496new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 524new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 737using (var server = new KestrelServerImpl(new[] { new MockTransportFactory() }, Array.Empty<IMultiplexedConnectionListenerFactory>(), new HttpsConfigurationService(), testContext))
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
WebHostBuilderQuicExtensions.cs (1)
27services.AddSingleton<IMultiplexedConnectionListenerFactory, QuicTransportFactory>();
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
102return new KestrelServerImpl(sp.GetServices<IConnectionListenerFactory>(), Array.Empty<IMultiplexedConnectionListenerFactory>(), sp.GetRequiredService<IHttpsConfigurationService>(), context);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
102return new KestrelServerImpl(sp.GetServices<IConnectionListenerFactory>(), Array.Empty<IMultiplexedConnectionListenerFactory>(), sp.GetRequiredService<IHttpsConfigurationService>(), context);