Beispiel #1
0
 public PermissionMiddleware(RequestDelegate next, PermissionMiddlewareOption option)
 {
     _option          = option;
     _next            = next;
     _userPermissions = option.UserPermissions;
 }
Beispiel #2
0
 public static IApplicationBuilder UsePermission(this IApplicationBuilder builder, PermissionMiddlewareOption option)
 {
     return(builder.UseMiddleware <PermissionMiddleware>(option));
 }