6 implementations of IConnectionFactory
ClientSample (1)
Tcp\TcpHubConnectionBuilderExtensions.cs (1)
46private class TcpConnectionFactory : IConnectionFactory
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnectionFactory.cs (1)
18public class HttpConnectionFactory : IConnectionFactory
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Client\SocketConnectionFactory.cs (1)
15internal sealed class SocketConnectionFactory : IConnectionFactory, IAsyncDisposable
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubProtocolVersionTests.cs (1)
232private class ProxyConnectionFactory : IConnectionFactory
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.Reconnect.cs (1)
1118private class ReconnectingConnectionFactory : IConnectionFactory
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
DelegateConnectionFactory.cs (1)
9public class DelegateConnectionFactory : IConnectionFactory
62 references to IConnectionFactory
ClientSample (1)
Tcp\TcpHubConnectionBuilderExtensions.cs (1)
40builder.Services.AddSingleton<IConnectionFactory, TcpConnectionFactory>();
http2cat (3)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
26private readonly IConnectionFactory _connectionFactory; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
15services.AddSingleton<IConnectionFactory, SocketConnectionFactory>();
IIS.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
26private readonly IConnectionFactory _connectionFactory; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
15services.AddSingleton<IConnectionFactory, SocketConnectionFactory>();
IIS.LongTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
26private readonly IConnectionFactory _connectionFactory; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
15services.AddSingleton<IConnectionFactory, SocketConnectionFactory>();
IIS.NewHandler.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
26private readonly IConnectionFactory _connectionFactory; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
15services.AddSingleton<IConnectionFactory, SocketConnectionFactory>();
IIS.NewShim.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
26private readonly IConnectionFactory _connectionFactory; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
15services.AddSingleton<IConnectionFactory, SocketConnectionFactory>();
IISExpress.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
26private readonly IConnectionFactory _connectionFactory; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
15services.AddSingleton<IConnectionFactory, SocketConnectionFactory>();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
26private readonly IConnectionFactory _connectionFactory; 31public Http2CatHostedService(IConnectionFactory connectionFactory, ILogger<Http2CatHostedService> logger,
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
15services.AddSingleton<IConnectionFactory, SocketConnectionFactory>();
Microsoft.AspNetCore.SignalR.Client (1)
HubConnectionBuilderHttpExtensions.cs (1)
164hubConnectionBuilder.Services.AddSingleton<IConnectionFactory, HttpConnectionFactory>();
Microsoft.AspNetCore.SignalR.Client.Core (8)
HubConnection.cs (5)
81private readonly IConnectionFactory _connectionFactory; 196/// <param name="connectionFactory">The <see cref="IConnectionFactory" /> used to create a connection each time <see cref="StartAsync" /> is called.</param> 208public HubConnection(IConnectionFactory connectionFactory, IHubProtocol protocol, EndPoint endPoint, IServiceProvider serviceProvider, ILoggerFactory loggerFactory, IRetryPolicy reconnectPolicy) 217/// <param name="connectionFactory">The <see cref="IConnectionFactory" /> used to create a connection each time <see cref="StartAsync" /> is called.</param> 225public HubConnection(IConnectionFactory connectionFactory,
HubConnectionBuilder.cs (3)
49var connectionFactory = serviceProvider.GetService<IConnectionFactory>() ?? 50throw new InvalidOperationException($"Cannot create {nameof(HubConnection)} instance. An {nameof(IConnectionFactory)} was not configured.");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
HubConnectionTests.cs (1)
64hubConnectionBuilder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory);
HubProtocolVersionTests.cs (3)
121connectionBuilder.Services.AddSingleton<IConnectionFactory>(proxyConnectionFactory); 234private readonly IConnectionFactory _innerFactory; 237public ProxyConnectionFactory(IConnectionFactory innerFactory)
Microsoft.AspNetCore.SignalR.Client.Tests (24)
HubConnectionBuilderTests.cs (2)
30builder.Services.AddSingleton<IConnectionFactory>(new HttpConnectionFactory(Options.Create(new HttpConnectionOptions()), NullLoggerFactory.Instance)); 64builder.Services.AddSingleton<IConnectionFactory>(new HttpConnectionFactory(Options.Create(new HttpConnectionOptions()), NullLoggerFactory.Instance));
HubConnectionTests.ConnectionLifecycle.cs (3)
89builder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory); 122builder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory); 614builder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory);
HubConnectionTests.cs (4)
67builder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory); 844var mockConnection = new Mock<HubConnection>(new Mock<IConnectionFactory>().Object, new Mock<IHubProtocol>().Object, new Mock<EndPoint>().Object, 894builder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory); 926builder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory);
HubConnectionTests.Helpers.cs (1)
30builder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory);
HubConnectionTests.Reconnect.cs (12)
113builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 214builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 309builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 389builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 487builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 571builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 630builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 685builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 743builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 850builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 983builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory); 1060builder.Services.AddSingleton<IConnectionFactory>(testConnectionFactory);
MockHubConnection.cs (2)
17IConnectionFactory connectionFactory = new Mock<IConnectionFactory>().Object;
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
HubConnectionReceiveBenchmark.cs (1)
85hubConnectionBuilder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory);
HubConnectionSendBenchmark.cs (1)
65hubConnectionBuilder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory);
HubConnectionStartBenchmark.cs (1)
51hubConnectionBuilder.Services.AddSingleton<IConnectionFactory>(delegateConnectionFactory);