5 writes to MaxDepth
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
187MaxDepth = 1000
System.Text.Json (4)
System\Text\Json\Document\JsonDocumentOptions.cs (1)
78MaxDepth = MaxDepth
System\Text\Json\Reader\Utf8JsonReader.cs (1)
231_readerOptions.MaxDepth = JsonReaderOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth.
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (1)
42_readerOptions.MaxDepth = JsonReaderOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth.
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
1046MaxDepth = EffectiveMaxDepth
11 references to MaxDepth
System.Text.Json (11)
System\Text\Json\Reader\Utf8JsonReader.cs (3)
229if (_readerOptions.MaxDepth == 0) 741if (_bitStack.CurrentDepth >= _readerOptions.MaxDepth) 775if (_bitStack.CurrentDepth >= _readerOptions.MaxDepth)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (1)
40if (_readerOptions.MaxDepth == 0)
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (5)
54/// Hence, <see cref="JsonReaderOptions.AllowTrailingCommas"/>, <see cref="JsonReaderOptions.MaxDepth"/>, and <see cref="JsonReaderOptions.CommentHandling"/> are used while reading. 107/// Hence, <see cref="JsonReaderOptions.AllowTrailingCommas"/>, <see cref="JsonReaderOptions.MaxDepth"/>, and <see cref="JsonReaderOptions.CommentHandling"/> are used while reading. 159/// Hence, <see cref="JsonReaderOptions.AllowTrailingCommas"/>, <see cref="JsonReaderOptions.MaxDepth"/>, and <see cref="JsonReaderOptions.CommentHandling"/> are used while reading. 208/// Hence, <see cref="JsonReaderOptions.AllowTrailingCommas"/>, <see cref="JsonReaderOptions.MaxDepth"/>, and <see cref="JsonReaderOptions.CommentHandling"/> are used while reading. 268/// Hence, <see cref="JsonReaderOptions.AllowTrailingCommas"/>, <see cref="JsonReaderOptions.MaxDepth"/>, and <see cref="JsonReaderOptions.CommentHandling"/> are used while reading.
System\Text\Json\ThrowHelper.cs (2)
384message = SR.Format(SR.ArrayDepthTooLarge, json.CurrentState.Options.MaxDepth); 441message = SR.Format(SR.ObjectDepthTooLarge, json.CurrentState.Options.MaxDepth);