1 write to EndMethod
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTestUtils\Hubs.cs (1)
1222EndMethod = new TaskCompletionSource<object>(TaskCreationOptions.RunContinuationsAsynchronously);
56 references to EndMethod
Microsoft.AspNetCore.SignalR.Tests (56)
HubConnectionHandlerTests.ClientResult.cs (4)
301var task = await Task.WhenAny(tcsService.EndMethod.Task, client.ReadAsync()).DefaultTimeout(); 302if (task == tcsService.EndMethod.Task) 304await tcsService.EndMethod.Task; 312Assert.Equal(5, await tcsService.EndMethod.Task.DefaultTimeout());
HubConnectionHandlerTests.cs (14)
3044tcsService.EndMethod.SetResult(null); 3348tcsService.EndMethod.TrySetResult(null); 3410tcsService.EndMethod.TrySetResult(null); 3453var endTcs = tcsService.EndMethod; 3467tcsService.EndMethod.TrySetResult(null); 3530tcsService.EndMethod.TrySetResult(null); 3715await _tcsService.EndMethod.Task; 3750tcsService.EndMethod.SetResult(null); 3786await tcsService.EndMethod.Task.DefaultTimeout(); 4233await tcsService.EndMethod.Task.DefaultTimeout(); 4280await tcsService.EndMethod.Task.DefaultTimeout(); 4314await tcsService.EndMethod.Task.DefaultTimeout(); 4342var secondArgument = await tcsService.EndMethod.Task.DefaultTimeout(); 4372var secondArgument = await tcsService.EndMethod.Task.DefaultTimeout();
HubConnectionHandlerTestUtils\Hubs.cs (14)
353tcsService.EndMethod.SetResult(result); 357tcsService.EndMethod.SetException(ex); 1021await _tcsService.EndMethod.Task; 1028await _tcsService.EndMethod.Task; 1042_tcsService.EndMethod.SetResult(null); 1057_tcsService.EndMethod.SetResult(null); 1072_tcsService.EndMethod.SetResult(y); 1086_tcsService.EndMethod.SetResult(input); 1102_tcsService.EndMethod.SetResult(null); 1112_tcsService.EndMethod.SetResult(null); 1125_tcsService.EndMethod.SetResult(null); 1143_tcsService.EndMethod.SetResult(null); 1163_tcsService.EndMethod.SetResult(null); 1202_tcsService.EndMethod.SetResult(null);
HubFilterTests.cs (21)
122await tcsService.EndMethod.Task.DefaultTimeout(); 126await tcsService.EndMethod.Task.DefaultTimeout(); 135await tcsService.EndMethod.Task.DefaultTimeout(); 197await tcsService1.EndMethod.Task.DefaultTimeout(); 198await tcsService2.EndMethod.Task.DefaultTimeout(); 203await tcsService1.EndMethod.Task.DefaultTimeout(); 204await tcsService2.EndMethod.Task.DefaultTimeout(); 214await tcsService1.EndMethod.Task.DefaultTimeout(); 215await tcsService2.EndMethod.Task.DefaultTimeout(); 247await tcsService1.EndMethod.Task.DefaultTimeout(); 248await tcsService2.EndMethod.Task.DefaultTimeout(); 253await tcsService1.EndMethod.Task.DefaultTimeout(); 254await tcsService2.EndMethod.Task.DefaultTimeout(); 264await tcsService1.EndMethod.Task.DefaultTimeout(); 265await tcsService2.EndMethod.Task.DefaultTimeout(); 298await tcsService1.EndMethod.Task.DefaultTimeout(); 299await tcsService2.EndMethod.Task.DefaultTimeout(); 304await tcsService1.EndMethod.Task.DefaultTimeout(); 305await tcsService2.EndMethod.Task.DefaultTimeout(); 315await tcsService1.EndMethod.Task.DefaultTimeout(); 316await tcsService2.EndMethod.Task.DefaultTimeout();
TestFilters.cs (3)
23_service.EndMethod.TrySetResult(null); 30_service.EndMethod.TrySetResult(null); 39_service.EndMethod.TrySetResult(null);