Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partial warning #6435

Merged
merged 3 commits into from
May 16, 2018
Merged

partial warning #6435

merged 3 commits into from
May 16, 2018

Conversation

Rick-Anderson
Copy link
Contributor

@Rick-Anderson Rick-Anderson commented May 16, 2018

Fixes #5938
image

@Rick-Anderson Rick-Anderson requested a review from guardrex May 16, 2018 05:57
Copy link
Collaborator

@guardrex guardrex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rick-Anderson Just a few minor nits to consider.

::: moniker range=">= aspnetcore-2.1"

### Use of IHtmlHelper.Partial may result in application deadlocks.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No period on section header

In ASP.NET Core 2.1 and later, calling `Html.Partial` will result in an analyzer warning due to the potential for deadlocks. The warning message is:

*Use of IHtmlHelper.Partial may result in application deadlocks. Consider using `<partial>` Tag Helper or `IHtmlHelper.PartialAsync`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Italics are started (*) but not ended. Missing a closing asterisk?

### Use of IHtmlHelper.Partial may result in application deadlocks.

In ASP.NET Core 2.1 and later, calling `Html.Partial` will result in an analyzer warning due to the potential for deadlocks. The warning message is:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove future tense: "will result in" 👉 "results in"

@Rick-Anderson Rick-Anderson merged commit 584c283 into master May 16, 2018
@Rick-Anderson Rick-Anderson deleted the partial-warning/ra branch May 16, 2018 18:25
@scottaddie
Copy link
Member

@Rick-Anderson Should this be moved to the following doc instead? https://docs.microsoft.com/aspnet/core/mvc/views/partial

@Rick-Anderson
Copy link
Contributor Author

Good idea. I'll do that.

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

Successfully merging this pull request may close these issues.

3 participants