Make LoadContentAsync and LoadChildrenReferencesAndTypesAsync return Task<>
When I inherit from ContentProvider I need to override LoadContent and LoadChildrenReferencesAndTypes. These two methods are not async which means that I can't use async/await in those methods. If below methods existed I could override them instead and use async/await in my implementation.
Task<IContent?> LoadContentAsync
Task<IList<GetChildrenReferenceResult>> LoadChildrenReferencesAndTypesAsync
I know I can use Task.Run( to call async methods but It's not recommended.
Here is some guidelines from David Fowler who works with .NET at Microsoft.https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AsyncGuidance.md#avoid-using-taskresult-and-taskwait
1
vote
