Esempio n. 1
0
        public IObjectContainer CreateContainer()
        {
            var container = new UnityContainer();

            UnityAdapterHelper.OnUnityContainerCreated(new UnityContainerCreatedEventArgs(container));

            return(new UnityContainerAdapter(container));
        }
        public static bool IsRegistered(Type interfaceType)
        {
            var unitContainer = UnityAdapterHelper.GetUnityContainer(Composer.ObjectContainer);

            return(unitContainer.IsRegistered(interfaceType));
        }