-
Notifications
You must be signed in to change notification settings - Fork 841
HttpDependencyMetadataResolver class for the custom downstream dependency metadata resolution #6880
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
Open
rainsxng
wants to merge
18
commits into
main
Choose a base branch
from
dbohdanov/metadata-resolver-api
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1c084be
new metadata resolver api
rainsxng 11ccdb3
extension methods for the metadata resolvers
rainsxng 798cd50
update di resolution
rainsxng 040e51b
update metadata resolver usage, fix tests
rainsxng 51e6cce
update api according to the proposal
rainsxng 4fdeeb3
remove conditional compilation
rainsxng 397d5df
fix lint
rainsxng e045b3b
remove unused using
rainsxng edf2fbf
Merge branch 'main' into dbohdanov/metadata-resolver-api
rainsxng fa5a9b6
update extension methods
rainsxng ba2c5f3
fix warnings
rainsxng 0e94443
remove AddStandardHttpDependencyMetadataResolver API, fix PR comments
rainsxng 5f5e6e3
fix crefs
rainsxng e9839a6
fix build
rainsxng 0dca1e8
Merge branch 'main' into dbohdanov/metadata-resolver-api
rainsxng 27f1f56
revert interface changes
rainsxng 46fa1ab
remove interface and rename tests
rainsxng 2c2ef47
fix lint
rainsxng 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...aries/Microsoft.Extensions.Http.Diagnostics/Http/DefaultHttpDependencyMetadataResolver.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,25 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using System.Collections.Generic; | ||
| using System.Diagnostics.CodeAnalysis; | ||
| using Microsoft.Shared.DiagnosticIds; | ||
|
|
||
| namespace Microsoft.Extensions.Http.Diagnostics; | ||
|
|
||
| /// <summary> | ||
| /// Default implementation of <see cref="HttpDependencyMetadataResolver"/> that uses the base | ||
| /// trie-based lookup algorithm. | ||
| /// </summary> | ||
| [Experimental(diagnosticId: DiagnosticIds.Experiments.Telemetry, UrlFormat = DiagnosticIds.UrlFormat)] | ||
| internal sealed class DefaultHttpDependencyMetadataResolver : HttpDependencyMetadataResolver | ||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="DefaultHttpDependencyMetadataResolver"/> class. | ||
| /// </summary> | ||
| /// <param name="dependencyMetadata">A collection of HTTP dependency metadata used for request resolution.</param> | ||
| public DefaultHttpDependencyMetadataResolver(IEnumerable<IDownstreamDependencyMetadata> dependencyMetadata) | ||
| : base(dependencyMetadata) | ||
| { | ||
| } | ||
| } | ||
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
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
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
28 changes: 0 additions & 28 deletions
28
...soft.Extensions.Http.Diagnostics/Logging/Internal/IDownstreamDependencyMetadataManager.cs
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this attribute, it is internal code