register

Register a new factory for type T object into storage/DI container by Interface fully qualified name.

Parameters

Type

the type of object registered in storage

Interface

interface implemented by 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