Skip to content

Update [CallerShouldAudit] usage to include classes and interfaces.#40312

Closed
vinodkumarys wants to merge 1 commit intoAzure:mainfrom
vinodkumarys:CallerShouldAuditIncludeClasses
Closed

Update [CallerShouldAudit] usage to include classes and interfaces.#40312
vinodkumarys wants to merge 1 commit intoAzure:mainfrom
vinodkumarys:CallerShouldAuditIncludeClasses

Conversation

@vinodkumarys
Copy link
Copy Markdown
Member

@vinodkumarys vinodkumarys commented Nov 27, 2023

As discussed with @heaths and @scottaddie, updated the [CallerShouldAudit] attribute usage to include classes and interfaces. Instead of adding the attribute to each individual method in a client class, it would be more beneficial to apply it at the class level. This approach not only offers greater flexibility but also ensures our solution is future-proof, especially as new methods are added to these classes. In scenarios where audit functionality is required only for specific methods, we can still apply the attribute at the individual method level.

Original PR by @tg-msft introducing [CallerShouldAudit] #39345.

@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

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.

2 participants