Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions sdk/core/Azure.Core/src/Shared/CallerShouldAuditAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,23 @@ namespace Azure.Core
[AttributeUsage(AttributeTargets.Method)]
internal class CallerShouldAuditAttribute : Attribute
{
/// <summary>
/// Creates a new instance of <see cref="CallerShouldAuditAttribute"/>.
/// </summary>
public CallerShouldAuditAttribute()
: this(reason: null)
{
}

/// <summary>
/// Creates a new instance of <see cref="CallerShouldAuditAttribute"/>.
/// </summary>
/// <param name="reason"> Sets a description or link to the rationale for potentially auditing this operation. </param>
public CallerShouldAuditAttribute(string? reason)
Comment thread
RodgeFu marked this conversation as resolved.
{
Reason = reason;
}

/// <summary>
/// Gets or sets a description or link to the rationale for potentially
/// auditing this operation.
Expand Down