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)
1030private class NonBindableMultiplexedTransportFactory : IMultiplexedConnectionListenerFactory, IConnectionListenerFactorySelector 1040private 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, 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, 52IEnumerable<IMultiplexedConnectionListenerFactory> multiplexedFactories,
KestrelServer.cs (1)
36Array.Empty<IMultiplexedConnectionListenerFactory>(),
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
KestrelServerTests.cs (12)
293IEnumerable<IMultiplexedConnectionListenerFactory> multiplexedFactories, 323Array.Empty<IMultiplexedConnectionListenerFactory>())); 334Array.Empty<IMultiplexedConnectionListenerFactory>()); 348Array.Empty<IMultiplexedConnectionListenerFactory>()); 368Array.Empty<IMultiplexedConnectionListenerFactory>()); 389new List<IMultiplexedConnectionListenerFactory> { new NonBindableMultiplexedTransportFactory() }); 413new List<IMultiplexedConnectionListenerFactory> { transportFactory, new NonBindableMultiplexedTransportFactory() }); 439new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 466new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 497new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 525new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 738using (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);