I registered several types in Unity and gave them type aliases as follows:
<typeAliases>
<typeAlias alias="MyType" type="foo.bar.MyType, foo.bar" />
</typeAliases>
Is it possible to resolve these types from the container using aliases (as opposed to the type), according to the lines:
var myType = container.ResolveByTypeAlias("MyType")
I see no way to do this, but thought I was missing something.
source
share