Table of Contents

Class RequireScopeAttribute

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Declares the scope required to call this method.

[AttributeUsage(AttributeTargets.Method)]
public class RequireScopeAttribute : Attribute
Inheritance
RequireScopeAttribute
Inherited Members

Constructors

RequireScopeAttribute(string)

public RequireScopeAttribute(string scope)

Parameters

scope string

Properties

Audit

Whether calls to this method are recorded in the audit log. Defaults to Default, which defers to the host's AuditOptions.DefaultAuditMode.

public AuditMode Audit { get; set; }

Property Value

AuditMode

Remarks

The audit decision sits beside the access decision because that is where a reviewer looks, and because one attribute can only give one answer — two attributes on a method could disagree about the same call with no way to tell which wins.

Scope

public string Scope { get; }

Property Value

string