I meet one problem that i can\'t solve now. I have the following:
UnityHelper.DefaultContainer.RegisterInstance(typeof(IMyInterface), \"test\", instance); >
I think that is what you are looking for.
var lifetimeManager = new TransientLifetimeManager(); UnityHelper.DefaultContainer.RegisterInstance(typeof(IMyInterface), "test", instance, lifetimeManager); lifetimeManager.RemoveValue();