24 references to CurrentDepth
Microsoft.AspNetCore.Http.Connections.Common (2)
NegotiateProtocol.cs (2)
64
Debug.Assert(writer.
CurrentDepth
== 0);
133
Debug.Assert(writer.
CurrentDepth
== 0);
Microsoft.AspNetCore.SignalR.Common (2)
Protocol\HandshakeProtocol.cs (2)
69
Debug.Assert(writer.
CurrentDepth
== 0);
100
Debug.Assert(writer.
CurrentDepth
== 0);
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
571
Debug.Assert(writer.
CurrentDepth
== 0);
System.Text.Json (19)
System\Text\Json\Serialization\JsonConverterOfT.cs (8)
329
if (writer.
CurrentDepth
>= options.EffectiveMaxDepth)
346
int originalPropertyDepth = writer.
CurrentDepth
;
422
state.Current.OriginalDepth = writer.
CurrentDepth
;
465
if (writer.
CurrentDepth
>= options.EffectiveMaxDepth)
478
state.Current.OriginalDepth = writer.
CurrentDepth
;
560
if (originalDepth != writer.
CurrentDepth
)
652
int originalDepth = writer.
CurrentDepth
;
654
if (originalDepth != writer.
CurrentDepth
|| writer.TokenType != JsonTokenType.PropertyName)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
225
int originalDepth = writer.
CurrentDepth
;
227
if (originalDepth != writer.
CurrentDepth
)
System\Text\Json\Writer\Utf8JsonWriter.cs (5)
87
private int Indentation =>
CurrentDepth
* _indentLength;
482
if (
CurrentDepth
>= _options.MaxDepth)
551
if (
CurrentDepth
== 0 && _tokenType != JsonTokenType.None)
923
if (
CurrentDepth
!= 0)
1132
private string DebuggerDisplay => $"BytesCommitted = {BytesCommitted} BytesPending = {BytesPending} CurrentDepth = {
CurrentDepth
}";
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (3)
16
if (propertyName.Length > JsonConstants.MaxCharacterTokenSize ||
CurrentDepth
>= _options.MaxDepth)
23
if (utf8PropertyName.Length > JsonConstants.MaxUnescapedTokenSize ||
CurrentDepth
>= _options.MaxDepth)
30
if (
CurrentDepth
>= _options.MaxDepth)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs (1)
30
if (
CurrentDepth
== 0 && _tokenType != JsonTokenType.None)