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