public ContentHttpHandler(ContentHttpHandlerOptions options, IWebHostEnvironment hostingEnvironment) { _options = options; _hostingEnvironment = hostingEnvironment; }
// Must have constructor with this signature, otherwise exception at run time public ContentHandlerMiddleware(RequestDelegate next, ContentHttpHandlerOptions options, IWebHostEnvironment hostingEnvironment) { _options = options; _hostingEnvironment = hostingEnvironment; _next = next; }