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

TemplateRenderer should use ThrowIfFaulted when waiting for faulted task #782

@yishaigalatzer

Description

@yishaigalatzer

Html.EditorFor and Html.DisplayFor are synchronous today. When rendering a view for the editor \ display template, it calls Wait(). Instead we should have both a sync and async pipeline (add Html.EditorForAsync, Html.DisplayForAsync) and have the synchronous version make the blocking call.

Original discussion:

See: https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/TemplateRenderer.cs#L103

Looks like the pipeline needs to accommodation async and we shouldn't be making blocking calls.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions