109 instantiations of TestConnection
Microsoft.AspNetCore.SignalR.Client.Tests (109)
HubConnectionTests.ConnectionLifecycle.cs (21)
40var testConnection = new TestConnection(); 55var testConnection = new TestConnection(onStart: SyncPoint.Create(out var syncPoint)); 85return new TestConnection().StartAsync(); 117return new TestConnection(onDispose: createCount == 1 ? onDisposeForFirstConnection : null).StartAsync(); 171var testConnection = new TestConnection(autoHandshake: false); 196var testConnection = new TestConnection(); 211var testConnection = new TestConnection(onStart: SyncPoint.Create(out var syncPoint)); 243var testConnection = new TestConnection(onStart: SyncPoint.Create(out var syncPoint)); 266var testConnection = new TestConnection(); 294var testConnection = new TestConnection(); 308var testConnection = new TestConnection(); 319var testConnection = new TestConnection(); 342var testConnection = new TestConnection(); 360var testConnection = new TestConnection(); 385var testConnection = new TestConnection(); 424var testConnection = new TestConnection(); 462var testConnection = new TestConnection(onDispose: SyncPoint.Create(out var syncPoint)); 510var connection = new TestConnection(autoHandshake: false); 535var connection = new TestConnection(onStart: () => 580connection = new TestConnection(autoHandshake: false); 610var innerConnection = new TestConnection();
HubConnectionTests.cs (31)
36var hubConnection = CreateHubConnection(new TestConnection(), protocol: MockHubProtocol.Throw(exception), LoggerFactory); 51var hubConnection = CreateHubConnection(new TestConnection(), protocol: MockHubProtocol.Throw(exception), LoggerFactory); 66endPoint => new TestConnection().StartAsync()); 85var connection = new TestConnection(); 105var connection = new TestConnection(); 131var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 152var connection = new TestConnection(); 171var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 187var connection = new TestConnection(); 206var connection = new TestConnection(); 226var connection = new TestConnection(pipeOptions: new PipeOptions(readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, pauseWriterThreshold: 100, useSynchronizationContext: false, resumeWriterThreshold: 50)); 248var connection = new TestConnection(); 267var connection = new TestConnection(); 286var connection = new TestConnection(); 316var connection = new TestConnection(); 355var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 379var testConnection = new TestConnection(); 413var hubConnection = CreateHubConnection(new TestConnection(), loggerFactory: LoggerFactory); 434var connection = new TestConnection(); 474var connection = new TestConnection(); 505var connection = new TestConnection(); 549var connection = new TestConnection(); 581var connection = new TestConnection(); 607var connection = new TestConnection(); 641var connection = new TestConnection(); 673var connection = new TestConnection(); 706var connection = new TestConnection(); 752var connection = new TestConnection(); 811var connection = new TestConnection(); 886var innerConnection = new TestConnection(); 918var innerConnection = new TestConnection();
HubConnectionTests.Extensions.cs (6)
216var connection = new TestConnection(); 244var connection = new TestConnection(); 282var connection = new TestConnection(); 324var connection = new TestConnection(); 362var connection = new TestConnection(); 676var connection = new TestConnection();
HubConnectionTests.Protocol.cs (35)
20var connection = new TestConnection(); 45var connection = new TestConnection(autoHandshake: false); 71var connection = new TestConnection(autoHandshake: false); 101var connection = new TestConnection(autoHandshake: false); 120var connection = new TestConnection(); 147var connection = new TestConnection(); 176var connection = new TestConnection(); 203var connection = new TestConnection(); 230var connection = new TestConnection(); 252var connection = new TestConnection(); 274var connection = new TestConnection(); 296var connection = new TestConnection(); 319var connection = new TestConnection(); 342var connection = new TestConnection(); 365var connection = new TestConnection(); 388var connection = new TestConnection(); 415var connection = new TestConnection(); 439var connection = new TestConnection(); 471var connection = new TestConnection(); 505var connection = new TestConnection(); 534var connection = new TestConnection(autoHandshake: false); 563var connection = new TestConnection(autoHandshake: false); 590var connection = new TestConnection(); 626var connection = new TestConnection(); 652var connection = new TestConnection(hasInherentKeepAlive: true); 681var connection = new TestConnection(); 705var connection = new TestConnection(); 726var connection = new TestConnection(); 753var connection = new TestConnection(); 780var connection = new TestConnection(); 809var connection = new TestConnection(); 831var connection = new TestConnection(); 856var connection = new TestConnection(); 881var connection = new TestConnection(); 906var connection = new TestConnection();
HubConnectionTests.Reconnect.cs (11)
42var testConnection = new TestConnection(); 112testConnectionFactory = new ReconnectingConnectionFactory(() => new TestConnection(OnTestConnectionStart)); 213var testConnectionFactory = new ReconnectingConnectionFactory(() => new TestConnection(OnTestConnectionStart)); 308var testConnectionFactory = new ReconnectingConnectionFactory(() => new TestConnection(OnTestConnectionStart)); 486testConnectionFactory = new ReconnectingConnectionFactory(() => new TestConnection()); 570testConnectionFactory = new ReconnectingConnectionFactory(() => new TestConnection()); 684var testConnectionFactory = new ReconnectingConnectionFactory(() => new TestConnection(autoHandshake: false)); 742var testConnectionFactory = new ReconnectingConnectionFactory(() => new TestConnection(autoHandshake: false)); 849var testConnectionFactory = new ReconnectingConnectionFactory(() => new TestConnection(autoHandshake: false)); 982var testConnectionFactory = new ReconnectingConnectionFactory(() => new TestConnection(OnTestConnectionStart)); 1124: this(() => new TestConnection())
HubConnectionTests.Tracing.cs (5)
35var connection = new TestConnection(); 72var connection = new TestConnection(); 110var connection = new TestConnection(); 145connection = new TestConnection(onStart: () => 184connection = new TestConnection(onStart: async () =>
106 references to TestConnection
Microsoft.AspNetCore.SignalR.Client.Tests (106)
HubConnectionTests.ConnectionLifecycle.cs (20)
40var testConnection = new TestConnection(); 55var testConnection = new TestConnection(onStart: SyncPoint.Create(out var syncPoint)); 171var testConnection = new TestConnection(autoHandshake: false); 196var testConnection = new TestConnection(); 211var testConnection = new TestConnection(onStart: SyncPoint.Create(out var syncPoint)); 243var testConnection = new TestConnection(onStart: SyncPoint.Create(out var syncPoint)); 266var testConnection = new TestConnection(); 294var testConnection = new TestConnection(); 308var testConnection = new TestConnection(); 319var testConnection = new TestConnection(); 342var testConnection = new TestConnection(); 360var testConnection = new TestConnection(); 385var testConnection = new TestConnection(); 424var testConnection = new TestConnection(); 462var testConnection = new TestConnection(onDispose: SyncPoint.Create(out var syncPoint)); 510var connection = new TestConnection(autoHandshake: false); 535var connection = new TestConnection(onStart: () => 578TestConnection connection = null; 610var innerConnection = new TestConnection(); 633private static async Task ForceLastInvocationToComplete(TestConnection testConnection)
HubConnectionTests.cs (24)
85var connection = new TestConnection(); 105var connection = new TestConnection(); 152var connection = new TestConnection(); 187var connection = new TestConnection(); 206var connection = new TestConnection(); 226var connection = new TestConnection(pipeOptions: new PipeOptions(readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, pauseWriterThreshold: 100, useSynchronizationContext: false, resumeWriterThreshold: 50)); 248var connection = new TestConnection(); 267var connection = new TestConnection(); 286var connection = new TestConnection(); 316var connection = new TestConnection(); 379var testConnection = new TestConnection(); 434var connection = new TestConnection(); 474var connection = new TestConnection(); 505var connection = new TestConnection(); 549var connection = new TestConnection(); 581var connection = new TestConnection(); 607var connection = new TestConnection(); 641var connection = new TestConnection(); 673var connection = new TestConnection(); 706var connection = new TestConnection(); 752var connection = new TestConnection(); 811var connection = new TestConnection(); 886var innerConnection = new TestConnection(); 918var innerConnection = new TestConnection();
HubConnectionTests.Extensions.cs (6)
216var connection = new TestConnection(); 244var connection = new TestConnection(); 282var connection = new TestConnection(); 324var connection = new TestConnection(); 362var connection = new TestConnection(); 676var connection = new TestConnection();
HubConnectionTests.Helpers.cs (1)
16TestConnection connection,
HubConnectionTests.Protocol.cs (35)
20var connection = new TestConnection(); 45var connection = new TestConnection(autoHandshake: false); 71var connection = new TestConnection(autoHandshake: false); 101var connection = new TestConnection(autoHandshake: false); 120var connection = new TestConnection(); 147var connection = new TestConnection(); 176var connection = new TestConnection(); 203var connection = new TestConnection(); 230var connection = new TestConnection(); 252var connection = new TestConnection(); 274var connection = new TestConnection(); 296var connection = new TestConnection(); 319var connection = new TestConnection(); 342var connection = new TestConnection(); 365var connection = new TestConnection(); 388var connection = new TestConnection(); 415var connection = new TestConnection(); 439var connection = new TestConnection(); 471var connection = new TestConnection(); 505var connection = new TestConnection(); 534var connection = new TestConnection(autoHandshake: false); 563var connection = new TestConnection(autoHandshake: false); 590var connection = new TestConnection(); 626var connection = new TestConnection(); 652var connection = new TestConnection(hasInherentKeepAlive: true); 681var connection = new TestConnection(); 705var connection = new TestConnection(); 726var connection = new TestConnection(); 753var connection = new TestConnection(); 780var connection = new TestConnection(); 809var connection = new TestConnection(); 831var connection = new TestConnection(); 856var connection = new TestConnection(); 881var connection = new TestConnection(); 906var connection = new TestConnection();
HubConnectionTests.Reconnect.cs (15)
42var testConnection = new TestConnection(); 99var testConnection = await testConnectionFactory.GetNextOrCurrentTestConnection(); 527var currentConnection = await testConnectionFactory.GetNextOrCurrentTestConnection(); 602var currentConnection = await testConnectionFactory.GetNextOrCurrentTestConnection(); 791var currentTestConnection = await testConnectionFactory.GetNextOrCurrentTestConnection(); 898var currentTestConnection = await testConnectionFactory.GetNextOrCurrentTestConnection(); 1120public readonly Func<TestConnection> _testConnectionFactory; 1121public TaskCompletionSource<TestConnection> _testConnectionTcs = new TaskCompletionSource<TestConnection>(TaskCreationOptions.RunContinuationsAsynchronously); 1128public ReconnectingConnectionFactory(Func<TestConnection> testConnectionFactory) 1133public Task<TestConnection> GetNextOrCurrentTestConnection() 1140var testConnection = _testConnectionFactory(); 1150_testConnectionTcs = new TaskCompletionSource<TestConnection>(TaskCreationOptions.RunContinuationsAsynchronously); 1157var disposingTestConnection = await _testConnectionTcs.Task; 1159_testConnectionTcs = new TaskCompletionSource<TestConnection>(TaskCreationOptions.RunContinuationsAsynchronously);
HubConnectionTests.Tracing.cs (5)
35var connection = new TestConnection(); 72var connection = new TestConnection(); 110var connection = new TestConnection(); 144TestConnection connection = null; 183TestConnection connection = null;