Created
February 26, 2024 16:17
-
-
Save trnktms/048c19b4326266c1ecc2a1bc4bbb3c25 to your computer and use it in GitHub Desktop.
This file contains 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
public class HeaderResolver : IComponentResolver | |
{ | |
public int Order => -100; | |
private readonly IApiPublishedContentCache _apiPublishedContentCache; | |
public HeaderResolver(IApiPublishedContentCache apiPublishedContentCache) | |
{ | |
_apiPublishedContentCache = apiPublishedContentCache; | |
} | |
public IPublishedContent ResolveContent(IPublishedContent content) | |
{ | |
return _apiPublishedContentCache.GetByRoute("/site-data/page-frames/header/"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment