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