IocContainerExtensions extension
Extensions for IocContainer
- on
Methods
-
dispose(
) → void - Dispose all items in the scope. Warning: don't use this on your root container. You should only use this on scoped containers
-
getScoped<
T> () → T - Gets a service, but each service in the object mesh will have only one instance. If you want to get multiple scoped objects, call scoped to get a reusable IocContainer and then call get on that.
-
init<
T> () → Future< T> - Gets a dependency that requires async initialization.
-
scoped(
) → IocContainer - Creates a new Ioc Container for a particular scope