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