public APIKeyMiddleware(RequestDelegate next, APIKeyOptions options) { this.next = next; this.options = options; }
public APIKeyMiddleware(RequestDelegate next, IOptions <APIKeyOptions> options) { this.next = next; this.options = options.Value; }