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)
1031private class NonBindableMultiplexedTransportFactory : IMultiplexedConnectionListenerFactory, IConnectionListenerFactorySelector 1041private 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)
4606services.AddSingleton<IMultiplexedConnectionListenerFactory>(new MockMultiplexedConnectionListenerFactory()); 4705services.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, 68throw new InvalidOperationException($"Cannot bind with {nameof(MultiplexedConnectionDelegate)} no {nameof(IMultiplexedConnectionListenerFactory)} is registered."); 76foreach (var multiplexedTransportFactory in _multiplexedTransportFactories) 87throw new InvalidOperationException($"No registered {nameof(IMultiplexedConnectionListenerFactory)} supports endpoint {endPoint.GetType().Name}: {endPoint}");
Internal\KestrelServerImpl.cs (3)
25private readonly List<IMultiplexedConnectionListenerFactory> _multiplexedTransportFactories; 39IEnumerable<IMultiplexedConnectionListenerFactory> multiplexedFactories, 53IEnumerable<IMultiplexedConnectionListenerFactory> multiplexedFactories,
KestrelServer.cs (1)
36Array.Empty<IMultiplexedConnectionListenerFactory>(),
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
KestrelServerTests.cs (12)
293IEnumerable<IMultiplexedConnectionListenerFactory> multiplexedFactories, 324Array.Empty<IMultiplexedConnectionListenerFactory>())); 335Array.Empty<IMultiplexedConnectionListenerFactory>()); 349Array.Empty<IMultiplexedConnectionListenerFactory>()); 369Array.Empty<IMultiplexedConnectionListenerFactory>()); 390new List<IMultiplexedConnectionListenerFactory> { new NonBindableMultiplexedTransportFactory() }); 414new List<IMultiplexedConnectionListenerFactory> { transportFactory, new NonBindableMultiplexedTransportFactory() }); 440new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 467new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 498new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 526new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 739using (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)
99return new KestrelServerImpl(sp.GetServices<IConnectionListenerFactory>(), Array.Empty<IMultiplexedConnectionListenerFactory>(), sp.GetRequiredService<IHttpsConfigurationService>(), context);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
99return new KestrelServerImpl(sp.GetServices<IConnectionListenerFactory>(), Array.Empty<IMultiplexedConnectionListenerFactory>(), sp.GetRequiredService<IHttpsConfigurationService>(), context);