Unity 5.x:RegisterType<TFrom, TTo> 在哪里?

Unity 5.x: Where's the RegisterType<TFrom, TTo>?

我正在尝试做类似

的事情
Container.RegisterType<ISettingsService, SettingsService>(new ContainerControlledLifetimeManager());

在 v5 之前,我为此使用 using Microsoft.Practices.Unity;。 泛型方法在 v5 中是否仍然存在?

它在 Unity.Abstractions 包的命名空间 Unity 中,所以

using Unity;

应该够了。