Constructs a factory that uses delegate to instantiate an aggregate of type T.
the aggregate type
locator used to extract needed dependencies for T, it is also passed to delegate as first argument.
InstanceFactory!T for objects InstanceFactory!(Wrapper!T) for structs
See Implementation
Constructs a factory that uses delegate to instantiate an aggregate of type T.