title: Can you create transient DI service inside of middleware?
body: <p>I am calling a purchased package, which I do not have source code for.  It is expecting a service pre-configured through DI.   I can't change this.</p>
  <p>I don't know all of the parameters for the service until the user logs on.   User 'A' might have a different configuration than User 'B'.  If no user is logged in, then the service needs to be a different way.</p>
  <p>I can't inject it during 'Startup', as it will be configured differently for 'A' and 'B' (and 'no user')</p>
  <p>The best place (I think) to do it is during Middleware 'Invoke', however, I can't seem to get access to IServicesCollection to perform '.AddTransient&lt;&gt;'</p>
  <p>Is this even possible?</p>
  <p>Or is there a better way to create an '.AddTransient' service dynamically?</p>