Should Html.PrimeCache be named Html.PrimeCacheAsync? #1450

Closed
opened 2025-08-09 17:20:11 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @justinvp on 8/6/2016

MVC APIs that return Task/Task<T> have the Async suffix, e.g. Html.PartialAsync.

For consistency with MVC APIs and as an indicator to developers that they should @await the result, shouldn't Html.PrimeCache be named Html.PrimeCacheAsync?

*Originally created by @justinvp on 8/6/2016* MVC APIs that return `Task`/`Task<T>` have the `Async` suffix, e.g. [`Html.PartialAsync`](https://github.com/aspnet/Mvc/blob/93be3dee6e96e9de19825a9d0d4fc9f483d2dc9e/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewFeatures/HtmlHelper.cs#L490). For consistency with MVC APIs and as an indicator to developers that they should `@await` the result, shouldn't [`Html.PrimeCache`](https://github.com/aspnet/JavaScriptServices/blob/b684aeb6d2bc9e6f3aebc6846d331fa6a1ad4932/src/Microsoft.AspNetCore.AngularServices/PrimeCacheHelper.cs#L14) be named `Html.PrimeCacheAsync`?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1450
No description provided.