예제 #1
0
 public TokenProtectedResource(RequestDelegate next, TokenProtectedResourceOptions options)
 {
     _next    = next;
     _options = options;
 }
예제 #2
0
 public TokenProtectedResource(RequestDelegate next, TokenProtectedResourceOptions options)
 {
     _next = next;
     _options = options;
 }
예제 #3
0
 // extension method for easy wiring of middleware
 public static IApplicationBuilder UseTokenProtection(
     this IApplicationBuilder builder, TokenProtectedResourceOptions options)
 {
     return(builder.UseMiddleware <TokenProtectedResource>(options));
 }
예제 #4
0
 // extension method for easy wiring of middleware
 public static IApplicationBuilder UseTokenProtection(
     this IApplicationBuilder builder, TokenProtectedResourceOptions options)
 {
     return builder.UseMiddleware<TokenProtectedResource>(options);
 }