Exemplo n.º 1
0
        public static IContainerEntry GetEntry(LifestyleType lifestyleType, Type dataType)
        {
            IContainerEntry result = null;

            switch(lifestyleType)
            {
                case LifestyleType.Transient:
                    result = new TransientEntry(dataType);
                    break;

                case LifestyleType.Singleton:
                    result = new SingletonEntry(dataType);
                    break;
            }

            return result;
        }
Exemplo n.º 2
0
        public static IContainerEntry GetEntry(LifestyleType lifestyleType, Type dataType)
        {
            IContainerEntry result = null;

            switch (lifestyleType)
            {
            case LifestyleType.Transient:
                result = new TransientEntry(dataType);
                break;

            case LifestyleType.Singleton:
                result = new SingletonEntry(dataType);
                break;
            }

            return(result);
        }