Esempio n. 1
0
        private void SetupUnity()
        {
            var container = new UnityContainer();
            container.RegisterType<IFoo, Foo>();
            container.RegisterType<IBar, Bar>(new ContainerControlledLifetimeManager());

            container.RegisterInGlimpse();
        }