You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a scenario where we can registry in config file 2 Singleton of the same type but different dll version. In the background we have 2dll classes (Only different version) which all implement the desired interface. We would like to use Unity to resolve 2 instances for this interface.
[TestMethod]
public void SomeDescriptiveName()
{
IDtmParameter dtmParameter1 = this.container.Resolve<IDtmParameter>("1");
var msg1 = dtmParameter1.GetVersion();
Console.WriteLine(msg1);
IDtmParameter dtmParameter2 = this.container.Resolve<IDtmParameter>("2");
var msg2 = dtmParameter2.GetVersion();
Console.WriteLine(msg2);
}
The text was updated successfully, but these errors were encountered:
Ghislain1
changed the title
Resolving 2 Object from same type but different version
Resolving 2 Objects of same type but different version
Jun 15, 2019
ENikS
transferred this issue from unitycontainer/container
Jun 15, 2019
Description
We have a scenario where we can registry in config file 2 Singleton of the same type but different dll version. In the background we have 2dll classes (Only different version) which all implement the desired interface. We would like to use Unity to resolve 2 instances for this interface.
To Reproduce
The text was updated successfully, but these errors were encountered: