public static IApplicationBuilder UseSlackEventVerificationMiddleware(this IApplicationBuilder app, SlackEventVerificationMiddlewareOptions options) { return(app.UseMiddleware <SlackEventVerificationMiddleware>(Options.Create(options))); }
public SlackEventVerificationMiddleware(RequestDelegate next, IOptions <SlackEventVerificationMiddlewareOptions> options) { _options = options.Value; _next = next; }