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