问题
I'm trying to change UserManager<T> lifetime from Scoped to Transient inside the ConfigureServices(IServiceCollection service) but I don't know how to do that. Is it possible or I have to inject IServiceProvider inside every object that needs UserManager<T> and then create a new Scope every time I need to use the UserManager?
来源:https://stackoverflow.com/questions/60721511/is-it-possible-to-change-usermanagerts-lifetime