25 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 (20)
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)
108
private int Indentation =>
CurrentDepth
* _indentLength;
577
if (
CurrentDepth
>= _options.MaxDepth)
663
Debug.Assert(
CurrentDepth
== 0 && _tokenType != JsonTokenType.None);
1033
if (
CurrentDepth
!= 0)
1259
private string DebuggerDisplay => $"BytesCommitted = {BytesCommitted} BytesPending = {BytesPending} CurrentDepth = {
CurrentDepth
}";
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (3)
17
if (propertyName.Length > JsonConstants.MaxCharacterTokenSize ||
CurrentDepth
>= _options.MaxDepth)
24
if (utf8PropertyName.Length > JsonConstants.MaxUnescapedTokenSize ||
CurrentDepth
>= _options.MaxDepth)
31
if (
CurrentDepth
>= _options.MaxDepth)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs (2)
72
Debug.Assert(
CurrentDepth
== 0 && _tokenType != JsonTokenType.None);
112
Debug.Assert(
CurrentDepth
== 0 && _tokenType != JsonTokenType.None);