MVC1000: Use of IHtmlHelper.Partial should be avoided
Value | |
---|---|
Rule ID | MVC1000 |
Fix is breaking or non-breaking | Non-breaking |
Cause
The Partial or RenderPartial method was called or referenced.
Rule description
Rendering a partial using IHtmlHelper.Partial
or IHtmlHelper.RenderPartial
extension methods results in blocking calls. This may result in performance degradation and application dead locks issues due to thread pool starvation.
How to fix violations
- Use the PartialTagHelper
- Use the PartialAsync or RenderPartialAsync
When to suppress warnings
It's safe to suppress this rule if updating the application to use the suggested fixes is non-trivial. Before the validation is disabled, be sure to consider the risks of thread pool starvation to the application.
Makipagtulungan sa amin sa GitHub
Ang pinagmulan para sa content na ito ay mahahanap sa GitHub, kung saan maaari ka ring lumikha at sumuri ng mga isyu at mga pull request. Para sa higit pang impormasyon, tingnan ang aming gabay sa contributor.