Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Allow calls to TagHelperContext.GetChildContentAsync to reevaluate on each call #459

Closed
DamianEdwards opened this issue Jul 24, 2015 · 1 comment

Comments

@DamianEdwards
Copy link
Member

Right now TagHelperContext.GetChildContentAsync is memoized. We should have an overload that allows the user to specify that it reevaluates when called.

Task<TagHelperContent> GetChildContentAsync()
{
    return GetChildContentAsync(true);
}

Task<TagHelperContent> GetChildContentAsync(bool useCachedResult)
{
    ...
}
@danroth27 danroth27 added this to the 4.0.0-beta7 milestone Jul 24, 2015
NTaylorMullen added a commit that referenced this issue Jul 30, 2015
- Added a boolean overload that specifies whether the user wants to retrieve cached content.
- Added tests to validate `TagHelperExecutionContext` `GetChildContentAsync` and that `TagHelperContext` passes the appropriate values through.

#459
NTaylorMullen added a commit that referenced this issue Jul 31, 2015
- Added a boolean overload that specifies whether the user wants to retrieve cached content.
- Added tests to validate `TagHelperExecutionContext` `GetChildContentAsync` and that `TagHelperContext` passes the appropriate values through.

#459
NTaylorMullen added a commit to aspnet/Mvc that referenced this issue Jul 31, 2015
@NTaylorMullen
Copy link
Member

a8fd85d

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants