Skip to content

Conversation

maksimkim
Copy link
Contributor

SymmetricAlgorithm.Create() is not supported in policy expressions

Clarified exception handling for SymmetricAlgorithm.
@prmerger-automator
Copy link
Contributor

@maksimkim : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the API Management policy expressions documentation to clarify that the parameterless Create() method of SymmetricAlgorithm is not supported in policy expressions. The change corrects the documentation to reflect the actual API limitations.

Changes

  • Modified the allowed members specification for System.Security.Cryptography.SymmetricAlgorithm to explicitly exclude the parameterless Create() method

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

|`System.Security.Cryptography.SHA512`|All|
|`System.Security.Cryptography.SHA512Managed`|All|
|`System.Security.Cryptography.SymmetricAlgorithm`|All|
|`System.Security.Cryptography.SymmetricAlgorithm`|All exception parameterless Create()|
Copy link

Copilot AI Oct 15, 2025

Choose a reason for hiding this comment

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

Corrected 'exception' to 'except' for proper grammar.

Suggested change
|`System.Security.Cryptography.SymmetricAlgorithm`|All exception parameterless Create()|
|`System.Security.Cryptography.SymmetricAlgorithm`|All except parameterless Create()|

Copilot uses AI. Check for mistakes.

Copy link
Contributor

Choose a reason for hiding this comment

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

@maksimkim - Please make suggested wording change, othewise LGTM

Copy link
Contributor

Choose a reason for hiding this comment

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

@maksimkim - Can you respond to the requested changes or let us know if you would like us to commit them?

@dlepow - When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@v-dirichards
Copy link
Contributor

@dlepow

Can you review the proposed changes?

Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged tracking label for the PR review team label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants