register

Register a new factory for type T object into storage/DI container by id.

Parameters

Type

the type of object registered in storage

storage Storage!(ObjectFactory, string)

the storage where factory will be stored.

locator Locator!(Object, string)

the locator that will be used by GenericFactory implementation to fetch required objects.

id string

the identity by which to register the factory in storage.

Return Value

Type: auto

GenericFactory implementation for further configuration.

Meta