zhaolei
9 days ago 4a2e5b9a21940f11757be37d99f0944e240e908b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace Microsoft.AspNetCore.Authorization
{
    /// <summary>
    /// 授权扩展操作类
    /// </summary>
    public static class AuthorizationPolicyBuilderExtensions
    {
        /// <summary>
        /// RequireBootstrapAdminAuthorizate 扩展方法
        /// </summary>
        /// <param name="builder">AuthorizationPolicyBuilder 实例</param>
        /// <returns></returns>
        public static AuthorizationPolicyBuilder RequireBootstrapAdminAuthorizate(this AuthorizationPolicyBuilder builder)
        {
            builder.AddRequirements(new AppRequirement());
            return builder;
        }
    }
}