You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
519 B
24 lines
519 B
using System;
|
|
|
|
namespace Infrastructure.Web.Mvc
|
|
{
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class ControllerScopeAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// 默认为All
|
|
/// </summary>
|
|
public ControllerScopeAttribute()
|
|
{
|
|
this.Scope = ControllerScopeType.All;
|
|
}
|
|
|
|
public ControllerScopeAttribute(ControllerScopeType scope)
|
|
{
|
|
this.Scope = scope;
|
|
}
|
|
|
|
public ControllerScopeType Scope { get; }
|
|
}
|
|
}
|