All the controllers are injected as singletons. So if we have a transient or scoped service to be injected in a controller, it won't work because it has a shorter lifetime.
For ex resolving a scoped service in a controller will always return the same instance of that service because the containing class is a singleton.
Am I missing something or is that assumption right ?
All the controllers are injected as singletons. So if we have a transient or scoped service to be injected in a controller, it won't work because it has a shorter lifetime.
For ex resolving a scoped service in a controller will always return the same instance of that service because the containing class is a singleton.
Am I missing something or is that assumption right ?