View NagleAwaitable.cs
public class NagleAwaitable : ICriticalNotifyCompletion
{
private readonly ConcurrentQueue<Action> _work = new ConcurrentQueue<Action>();
private readonly TimerAwaitable _timerAwaitable;
private bool _timerResult;
public NagleAwaitable(TimeSpan period)
{
_timerAwaitable = new TimerAwaitable(period, period);
View after.log
2018-04-06T01:22:15.8698320-07:00 [INF] User profile is available. Using '"/Users/dfowler/.aspnet/DataProtection-Keys"' as key repository; keys will not be encrypted at rest. (a162847e)
2018-04-06T01:22:16.9001850-07:00 0HLCRIU0VVKQP:00000001 [INF] Request starting HTTP/1.1 GET http://127.0.0.1:52477/?cacheBust=true (ca22a1cb)
2018-04-06T01:22:17.0360340-07:00 0HLCRIU0VVKQP:00000001 [INF] Sending file. Request path: '"/default.html"'. Physical path: '"/Users/dfowler/dev/SignalR/clients/ts/FunctionalTests/wwwroot/default.html"' (27b0a520)
2018-04-06T01:22:17.0464150-07:00 0HLCRIU0VVKQP:00000001 [INF] Request finished in 163.393ms 200 text/html (791a596a)
2018-04-06T01:22:17.0587480-07:00 0HLCRIU0VVKQR:00000001 [INF] Request starting HTTP/1.1 GET http://127.0.0.1:52477/lib/jasmine/jasmine-html.js (ca22a1cb)
2018-04-06T01:22:17.0587590-07:00 0HLCRIU0VVKQP:00000002 [INF] Request starting HTTP/1.1 GET http://127.0.0.1:52477/lib/jasmine/jasmine.css (ca22a1cb)
2018-04-06T01:22:17.0587480-07:00 0HLCRIU0VVKQQ:0
View gist:50125780269d0878e0ab80b6c68bec93
System.Net.WebSockets.WebSocketException (0x80004005): Unable to connect to the remote server ---> System.Net.Http.HttpRequestException: Invalid argument ---> System.Net.Sockets.SocketException: Invalid argument
| at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
| --- End of inner exception stack trace ---
| at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
| at System.Threading.Tasks.ValueTask`1.get_Result()
|
View results.md
Method |          Input | HubProtocol |        Mean |        Error |       StdDev |      Median |        Op/s |  Gen 0 |  Gen 1 | Allocated |
------------------- |--------------- |------------ |------------:|-------------:|-------------:|------------:|------------:|-------:|-------:|----------:|
  ReadSingleMessage |   FewArguments |        Json |  2,143.1 ns |    20.283 ns |    17.980 ns |  2,142.2 ns |   466,613.1 | 0.0992 |      - |    1216 B |
 WriteSingleMessage |   FewArguments |        Json |  2,425.1 ns |    48.524 ns |    79.727 ns |  2,403.7 ns |   412,347.7 | 0.5493 | 0.0038 |    6608 B |
  ReadSingleMessage |   FewArguments |     MsgPack |  1,332.5 ns |    25.406 ns |    24.952 ns |  1,338.0 ns |   750,472.5 | 0.0801 |      - |     976 B |
 WriteSingleMessage |   FewArguments |     MsgPack |  1,607.7 ns |    55.877 ns |   162.110 ns |  1,581.0 ns |   622,011.1 | 0.0992 |      - |    1224 B |
  ReadSingleMessage | LargeArguments |        Json | 90,886.9 ns | 1,797.528 ns | 1,923.335 ns | 91,1
View Sample.cs
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.SignalR;
using Microsoft.AspNetCore.SignalR.Internal;
using Microsoft.AspNetCore.SignalR.Internal.Protocol;
View StreamPipeReader.cs
public class StreamPipeReader : PipeReader
{
private readonly Stream _stream;
private readonly PipeCompletionSource<ReadResult> _pipeCompletionSource = new PipeCompletionSource<ReadResult>();
private byte[] _buffer;
private int _consumedIndex;
private int _examinedIndex;
private int _read;
private List<(Action<Exception, object> callback, object state)> _callbacks;
private bool _completed;
View probing.txt
-- Listing probe configurations...
probe_config_t: probe=[C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.3] deps-json=[000002C979D02880] deps-dir-probe=[0]
probe_config_t: probe=[] deps-json=[0000000000000000] deps-dir-probe=[1]
probe_config_t: probe=[C:\Program Files\dotnet\store\x64\netcoreapp2.0] deps-json=[0000000000000000] deps-dir-probe=[0]
probe_config_t: probe=[C:\Users\davifowl\.nuget\packages] deps-json=[0000000000000000] deps-dir-probe=[0]
probe_config_t: probe=[C:\Program Files\dotnet\sdk\NuGetFallbackFolder] deps-json=[0000000000000000] deps-dir-probe=[0]
Adding tpa entry: C:\Users\davifowl\source\repos\WebApplication5\WebApplication5\bin\Debug\netcoreapp2.0\WebApplication5.dll
Processing TPA for deps entry [Microsoft.AspNetCore.Authentication.Abstractions, 2.0.0, lib/netstandard2.0/Microsoft.AspNetCore.Authentication.Abstractions.dll]
Considering entry [Microsoft.AspNetCore.Authentication.Abstractions/2.0.0/lib/netstandard2.0/Microsoft.AspNetCore.Authentication.Abstractions.dll]
View console-core.md
Pass File Line # Expression Inc (ms) Inc (%) Exc (ms) Exc (%) # Bug
Total Evaluation 390 100% 13 3.4% 1
Initial Properties (Pass 0) 7 1.7% 7 1.7% 1
Properties (Pass 1) 190 48.7% 4 0.9% 1
ItemDefinitionGroup (Pass 2) 11 2.8% 0 0% 1
Items (Pass 3) 53 13.5% 3 0.7% 1
Lazy Items (Pass 3.1) 93 23.9% 28 7.2% 1
UsingTasks (Pass 4) 5 1.2% 5 1.2% 1
Targets (Pass 5) 18 4.7% 2 0.4% 1
View console(netcore)-eval.md
Pass File Line # Expression Inc (ms) Inc (%) Exc (ms) Exc (%) # Bug
Total Evaluation 387 100% 14 3.6% 1
Initial Properties (Pass 0) 9 2.4% 9 2.4% 1
Properties (Pass 1) 184 47.6% 5 1.3% 1
ItemDefinitionGroup (Pass 2) 11 2.9% 0 0% 1
Items (Pass 3) 51 13.1% 3 0.8% 1
Lazy Items (Pass 3.1) 93 23.9% 26 6.8% 1
UsingTasks (Pass 4) 6 1.4% 6 1.4% 1
Targets (Pass 5) 20 5.1% 1 0.4% 1