Beispiel #1
0
        public virtual IDIContainerLazyBoundObject <TInterface> GetLazyBoundInstance <TInterface>()
            where TInterface : class
        {
            IDIContainerLazyBoundObject <TInterface> ret = new LazyBoundObject <TInterface>(this, typeof(TInterface), GetInstance);

            return(ret);
        }
Beispiel #2
0
        public virtual IDIContainerLazyBoundObject <object> GetLazyBoundInstance(Type interfaceType)
        {
            IDIContainerLazyBoundObject <object> ret = new LazyBoundObject <object>(this, interfaceType, GetInstance);

            return(ret);
        }