BCRDC / BCCS-CMPP

cluster solution for cmpp protocol in Azure kubernetes
0 stars 0 forks source link

To make a DI scope of your own #8

Open JHinW opened 3 years ago

JHinW commented 3 years ago

Q: as known, Dependency injector has about three types of scope which are Singleton, Sope and Transient, in aspdotnetcore, it is easy to know that every request will have its own scope created when request come in, but if your want to define yourself where a new scope should be created please refer to

https://stackoverflow.com/questions/43722463/how-to-create-a-child-scope-from-the-parent-with-default-dependency-injection-in