-
Hi, In NET 5 or NetCore version, static reference to Container will failed with error: "code: Error.NoCurrentScope" Is there any way to access a static Container to use in another layres? Thanks anyway |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
.Net Core and .Net 5+ moved away from the shared (static) state and imho you should too. But if you really want to configure the container with |
Beta Was this translation helpful? Give feedback.
-
Here is the docs https://github.com/dadhi/DryIoc/blob/master/docs/DryIoc.Docs/ReuseAndScopes.md#scopecontext |
Beta Was this translation helpful? Give feedback.
Here is the docs https://github.com/dadhi/DryIoc/blob/master/docs/DryIoc.Docs/ReuseAndScopes.md#scopecontext