register

Register a new factory for type Type object into storage/DI container by it's fully qualified name.

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.

Return Value

Type: auto

GenericFactory implementation for further configuration.

Meta