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