示例#1
0
        public object BuildNewInSession(Type pluginType, Instance instance)
        {
            object returnValue = instance.Build(pluginType, this);

            if (returnValue == null)
            {
                return(null);
            }

            try
            {
                return(_pipelineGraph.FindInterceptor(returnValue.GetType()).Process(returnValue, this));
            }
            catch (Exception e)
            {
                throw new StructureMapException(308, e, instance.Name, returnValue.GetType());
            }
        }
示例#2
0
 public InstanceInterceptor FindInterceptor(Type concreteType)
 {
     return(_parent.FindInterceptor(concreteType));
 }