-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Feature/get debug view value processing #60391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
safern
merged 21 commits into
dotnet:main
from
oskrabanek:feature/get-debug-view-value-processing
Dec 1, 2021
Merged
Changes from 13 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5855ba1
Added parameter for processing the value of the configuration e.g. fo…
oskrabanek e971af5
Rename
oskrabanek 7796dec
Extension methods separated
oskrabanek 2bfbf3f
After review suggestion changes
oskrabanek f1414d4
Documentation update
oskrabanek 25287f0
Build fixes
oskrabanek 4d61e02
Documentation for ConfigurationDebugViewContext added
oskrabanek 80abd2d
Nullable string error fix
oskrabanek b32aa0b
Changed to nullable string
oskrabanek 7293bf5
PR fixes
oskrabanek 1423779
Definition fix
oskrabanek d94a0c9
Missing definition
oskrabanek e660d25
Added getters to the definition
oskrabanek 73f8850
Update src/libraries/Microsoft.Extensions.Configuration.Abstractions/…
f278f17
Tests added
oskrabanek 8801896
Update src/libraries/Microsoft.Extensions.Configuration.Abstractions/…
a8b4341
Update src/libraries/Microsoft.Extensions.Configuration.Abstractions/…
0dbb60a
Update src/libraries/Microsoft.Extensions.Configuration.Abstractions/…
d2180b8
Update src/libraries/Microsoft.Extensions.Configuration.Abstractions/…
acaa1a0
Update src/libraries/Microsoft.Extensions.Configuration.Abstractions/…
79c2868
Update src/libraries/Microsoft.Extensions.Configuration.Abstractions/…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...ries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationDebugViewContext.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| namespace Microsoft.Extensions.Configuration | ||
| { | ||
| /// <summary> | ||
| /// Configuration debug view context provides the data about current item of the configuration | ||
| /// </summary> | ||
| public readonly struct ConfigurationDebugViewContext | ||
| { | ||
| public ConfigurationDebugViewContext(string path, string key, string? value, IConfigurationProvider configurationProvider) | ||
| { | ||
| Path = path; | ||
| Key = key; | ||
| Value = value; | ||
| ConfigurationProvider = configurationProvider; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Path of the current item | ||
oskrabanek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| /// </summary> | ||
| public string Path { get; } | ||
|
|
||
| /// <summary> | ||
| /// Key of the current item | ||
oskrabanek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| /// </summary> | ||
| public string Key { get; } | ||
|
|
||
| /// <summary> | ||
| /// Value of the current item | ||
oskrabanek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| /// </summary> | ||
| public string? Value { get; } | ||
|
|
||
| /// <summary> | ||
| /// Provider used to get the value of the current item | ||
oskrabanek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| /// </summary> | ||
| public IConfigurationProvider ConfigurationProvider { get; } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.