New Type of Resource Provider Adding the Idea of Resource Locators#22
Merged
ZarehD merged 6 commits intoZarehD:masterfrom Dec 31, 2025
Merged
New Type of Resource Provider Adding the Idea of Resource Locators#22ZarehD merged 6 commits intoZarehD:masterfrom
ZarehD merged 6 commits intoZarehD:masterfrom
Conversation
…vider (LocatingStaticResourcesInfoProvider) and introduces the idea of Resource locators as a more dymaic option for adding resources.
…f Samples.PartialStaticSite and modified to show off AspNetStaticContrib.Stekeblad
… processStartSignal - Bump version
Owner
|
Good work, @Stekeblad! Some questions and corrections... File:
File:
File:
Happy New Year! |
Contributor
Author
|
Happy New Year to you to! |
…t is not actually an issue. Inlined the private method in the same class that only had one line of code in it.
…d/readme.md from PR comments.
…rtupFilter after finding a way to get the same result all contained inside ActionDescriptorPageResourceLocator.
Owner
|
Thank you for the contribution, @Stekeblad. Good work. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request adds two new projects to the solution:
Contrib.Stekeblad adds a new resource provider,
LocatingStaticResourcesInfoProviderthat derives fromStaticResourcesInfoProvider. It introduces support for adding any number of "Resource locators" to the provider.Resource locators is a feature added in the new project that package consumers can implement to in a dynamic way find and list content in their application using any registered services and features. The ability to use services was previously limited.
This PR also includes two Resource Locators:
ActionDescriptorPageResourceLocator: Locates Compiled Razor Pages, first suggested in Improve logic for locating Razor Pages #20SitemapPageResourceLocator: Locates pages by retrieving the sitemap(s)There is also a small fix to the newly added
processStartSignalthat corrects an issue where it could lock the entire application untilsignalTimeoutSecondshad elapsed.