diff --git a/sdk/core/Azure.Core/src/Shared/CallerShouldAuditAttribute.cs b/sdk/core/Azure.Core/src/Shared/CallerShouldAuditAttribute.cs index c9455203a6c7..07717d7afc05 100644 --- a/sdk/core/Azure.Core/src/Shared/CallerShouldAuditAttribute.cs +++ b/sdk/core/Azure.Core/src/Shared/CallerShouldAuditAttribute.cs @@ -18,6 +18,23 @@ namespace Azure.Core [AttributeUsage(AttributeTargets.Method)] internal class CallerShouldAuditAttribute : Attribute { + /// + /// Creates a new instance of . + /// + public CallerShouldAuditAttribute() + : this(reason: null) + { + } + + /// + /// Creates a new instance of . + /// + /// Sets a description or link to the rationale for potentially auditing this operation. + public CallerShouldAuditAttribute(string? reason) + { + Reason = reason; + } + /// /// Gets or sets a description or link to the rationale for potentially /// auditing this operation.