Extensions extension
Extensions for IocContainerBuilder
Methods
-
add<
T> (T factory(IocContainer container), {void dispose(T service)?}) → void - Add a factory to the container.
-
addSingleton<
T> (T factory(IocContainer container)) → void - Add a singleton factory to the container. The container will only call this once throughout the lifespan of the app
-
addSingletonService<
T> (T service) → void - Add a singleton service to the container.