Skip to content

Add API docs for Caching and WebEncoders #28945

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

Merged
merged 4 commits into from
Jan 5, 2021
Merged

Conversation

JunTaoLuo
Copy link
Contributor

Part of #27538.

@@ -12,11 +12,13 @@ namespace Microsoft.Extensions.WebEncoders.Testing
/// </summary>
public sealed class HtmlTestEncoder : HtmlEncoder
{
/// <inheritdoc />
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we enhance the summary for this type to say something about not using it in production apps?

Copy link
Contributor

Choose a reason for hiding this comment

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

Same for the other test encoders

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The type summary already indicates that it's used for testing only. Didi you want to add it to all the method docs as well?

Copy link
Contributor

@pranavkm pranavkm Jan 4, 2021

Choose a reason for hiding this comment

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

It feels a bit spare. How about

<see cref="HtmlEncoder" /> used for unit testing. This encoder does not perform any encoding and should not be used in application code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated for all three encoders.

@pranavkm pranavkm added this to the 6.0-preview1 milestone Dec 31, 2020
@mkArtakMSFT mkArtakMSFT added the feature-caching Includes: StackExchangeRedis and SqlServer distributed caches label Jan 3, 2021
@JunTaoLuo
Copy link
Contributor Author

ping @pranavkm for review.

@JunTaoLuo JunTaoLuo merged commit 3b5ea4f into master Jan 5, 2021
@JunTaoLuo JunTaoLuo deleted the johluo/more-api-docs branch January 5, 2021 20:13
@amcasey amcasey added the area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares feature-caching Includes: StackExchangeRedis and SqlServer distributed caches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants