public static IUnityContainer Init() { IUnityContainer container = new UnityContainer(); container.AddNewExtension<Interception>(); container.RegisterType<IDummyService, DummyService2>(); container.SetUpForLogging<IDummyService, DummyService2>(); return container; }
public static IUnityContainer Init() { IUnityContainer container = new UnityContainer(); container.AddNewExtension<Interception>(); container.RegisterType<IGreeter, Aussie>("Aussie"); container.RegisterType<IGreeter, Kiwi>("Kiwi"); container.RegisterType<IGreeter, Pom>("Pom"); container.SetUpForLogging<IGreeter, Aussie>(); return container; }