Namespace Mokkit.Containers.Bag
Classes
- BagContainer
-
A minimal dependency container that resolves objects by their registered type. It performs no auto-wiring and has no external DI dependency: singletons are stored as-is and shared across scopes, while factory registrations produce one value per scope that is disposed when the scope ends.
- BagContainerBuilder
-
Builds a Mokkit.Containers.Bag.BagContainer — a minimal type-to-object container with no external DI dependency and no auto-wiring. Register pre-built instances with Mokkit.Containers.Bag.BagContainerBuilder.AddInstance``1(``0) or per-scope values with Mokkit.Containers.Bag.BagContainerBuilder.AddFactory``1(System.Func{``0}), either directly on the builder or from a Mokkit.Containers.Bag.BagContainerBuilder.UseInit(System.Func{Mokkit.Containers.Bag.IBagRegistrar,System.Threading.Tasks.Task}) callback.
Interfaces
- IBagRegistrar
-
The registration surface of a Mokkit.Containers.Bag.BagContainerBuilder, handed to Mokkit.Containers.Bag.BagContainerBuilder.UseInit(System.Func{Mokkit.Containers.Bag.IBagRegistrar,System.Threading.Tasks.Task}) callbacks so services can be registered without exposing the builder lifecycle.