1 write to _connectionContext
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
DefaultHubDispatcherBenchmark.cs (1)
50
_connectionContext
= new NoErrorHubConnectionContext(connection, contextOptions, NullLoggerFactory.Instance);
56 references to _connectionContext
Microsoft.AspNetCore.SignalR.Microbenchmarks (56)
DefaultHubDispatcherBenchmark.cs (56)
52
_connectionContext
.Protocol = new FakeHubProtocol();
215
return _dispatcher.DispatchMessageAsync(
_connectionContext
, new InvocationMessage("123", "Invocation", Array.Empty<object>()));
221
return _dispatcher.DispatchMessageAsync(
_connectionContext
, new InvocationMessage("123", "InvocationAsync", Array.Empty<object>()));
227
return _dispatcher.DispatchMessageAsync(
_connectionContext
, new InvocationMessage("123", "InvocationReturnValue", Array.Empty<object>()));
233
return _dispatcher.DispatchMessageAsync(
_connectionContext
, new InvocationMessage("123", "InvocationReturnAsync", Array.Empty<object>()));
239
return _dispatcher.DispatchMessageAsync(
_connectionContext
, new InvocationMessage("123", "InvocationValueTaskAsync", Array.Empty<object>()));
245
return _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamChannelReader", Array.Empty<object>()));
251
return _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamChannelReaderAsync", Array.Empty<object>()));
257
return _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamChannelReaderValueTaskAsync", Array.Empty<object>()));
263
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamChannelReaderCount", new object[] { 0 }));
265
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
266
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
272
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamIAsyncEnumerableCount", new object[] { 0 }));
274
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
275
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
281
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamIAsyncEnumerableCountCompletedTask", new object[] { 0 }));
283
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
284
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
290
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamChannelReaderCount", new object[] { 1 }));
292
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
293
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
299
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamIAsyncEnumerableCount", new object[] { 1 }));
301
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
302
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
308
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamIAsyncEnumerableCountCompletedTask", new object[] { 1 }));
310
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
311
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
317
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamChannelReaderCount", new object[] { 1000 }));
319
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
320
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
326
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamIAsyncEnumerableCount", new object[] { 1000 }));
328
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
329
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
335
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamInvocationMessage("123", "StreamIAsyncEnumerableCountCompletedTask", new object[] { 1000 }));
337
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
338
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
344
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new InvocationMessage("123", nameof(TestHub.UploadStream), Array.Empty<object>(), streamIds: new string[] { "1" }));
345
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamItemMessage("1", "test"));
346
await _dispatcher.DispatchMessageAsync(
_connectionContext
, CompletionMessage.Empty("1"));
348
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
349
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
355
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new InvocationMessage("123", nameof(TestHub.UploadStreamIAsynEnumerable), Array.Empty<object>(), streamIds: new string[] { "1" }));
356
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamItemMessage("1", "test"));
357
await _dispatcher.DispatchMessageAsync(
_connectionContext
, CompletionMessage.Empty("1"));
359
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
360
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
366
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new InvocationMessage("123", nameof(TestHub.UploadStream), Array.Empty<object>(), streamIds: new string[] { "1" }));
369
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamItemMessage("1", "test"));
371
await _dispatcher.DispatchMessageAsync(
_connectionContext
, CompletionMessage.Empty("1"));
373
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
374
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();
380
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new InvocationMessage("123", nameof(TestHub.UploadStreamIAsynEnumerable), Array.Empty<object>(), streamIds: new string[] { "1" }));
383
await _dispatcher.DispatchMessageAsync(
_connectionContext
, new StreamItemMessage("1", "test"));
385
await _dispatcher.DispatchMessageAsync(
_connectionContext
, CompletionMessage.Empty("1"));
387
await (
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted.Task;
388
(
_connectionContext
as NoErrorHubConnectionContext).ReceivedCompleted = new TaskCompletionSource();