public FirestormMiddleware(OwinMiddleware next, IRequestInvoker invoker) : base(next) { _invoker = invoker; _invoker.Initialize(); // TODO check lifetime of this }
public FirestormMiddleware(RequestDelegate next, IRequestInvoker invoker) { _next = next; _invoker = invoker; // middlewares are singletons constructed during WebHostBuilder.Build(), we can initialize here invoker.Initialize(); }