1 instantiation of ReusableUtf8JsonWriter
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
38
writer = new
ReusableUtf8JsonWriter
(stream);
10 references to ReusableUtf8JsonWriter
Microsoft.AspNetCore.SignalR.Common (10)
Protocol\HandshakeProtocol.cs (6)
58
var
reusableWriter =
ReusableUtf8JsonWriter
.Get(output);
73
ReusableUtf8JsonWriter
.Return(reusableWriter);
86
var
reusableWriter =
ReusableUtf8JsonWriter
.Get(output);
104
ReusableUtf8JsonWriter
.Return(reusableWriter);
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (4)
14
private static
ReusableUtf8JsonWriter
? _cachedInstance;
33
public static
ReusableUtf8JsonWriter
Get(IBufferWriter<byte> stream)
35
var
writer = _cachedInstance;
55
public static void Return(
ReusableUtf8JsonWriter
writer)