Esempio n. 1
0
        public InjectContext SpawnInjectContext(
            DiContainer container, InjectContext currentContext, object targetInstance, object concreteIdentifier)
        {
            var context = ZenPools.SpawnInjectContext(container, MemberType);

            context.ObjectType         = ObjectType;
            context.ParentContext      = currentContext;
            context.ObjectInstance     = targetInstance;
            context.Identifier         = Identifier;
            context.MemberName         = MemberName;
            context.Optional           = Optional;
            context.SourceType         = SourceType;
            context.FallBackValue      = DefaultValue;
            context.ConcreteIdentifier = concreteIdentifier;

            return(context);
        }