Example #1
0
        public IObjectConfigurationBuildStage <TObject> ToInlineDefinition <TInnerObject>(Action <IInstantiationBuildStage <TInnerObject> > innerObjectBuildAction) where TInnerObject : TProperty
        {
            var builder = new ObjectDefinitionBuilder <TInnerObject>(null);

            innerObjectBuildAction(builder);
            return(AddPropertyValue(new PropertyValue(_propertyName, builder.Definition)));
        }
Example #2
0
        public TBuilder ToInlineDefinition <TInnerObject>(Action <IInstantiationBuildStage <TInnerObject> > innerObjectBuildAction) where TInnerObject : TArgument
        {
            var innerObjectBuilder = new ObjectDefinitionBuilder <TInnerObject>(null);

            innerObjectBuildAction(innerObjectBuilder);
            _insertCtorArgAction(_holder.Definition.ConstructorArgumentValues, innerObjectBuilder.Definition);
            return(_builder);
        }
Example #3
0
 public FactoryMethodArgDefinitionBuilder(ObjectDefinitionBuilder <TObject> holder)
 {
     _holder = holder;
 }
Example #4
0
 public PropertyDefinitionBuilder(ObjectDefinitionBuilder <TObject> builder, string propertyName)
 {
     _builder      = builder;
     _propertyName = propertyName;
 }
Example #5
0
 public ProxyFactoryDefinitionBuilder(string id)
 {
     _builder = new ObjectDefinitionBuilder <ProxyFactoryObject>(id);
     _ref     = new ObjectRef <TObject>(id);
     SetTargetInterfaces();
 }
Example #6
0
 public FactoryMethodDefinitionBuilder(ObjectDefinitionBuilder <TObject> holder)
     : base(holder, holder)
 {
 }
Example #7
0
 public GenericFactoryMethodDefinitionBuilder(ObjectDefinitionBuilder <TObject> holder, TBuilder builder)
 {
     _holder  = holder;
     _builder = builder;
 }
Example #8
0
 public LookupMethodDefinitionBuilder(ObjectDefinitionBuilder <TObject> builder, string methodName)
 {
     _builder    = builder;
     _methodName = methodName;
 }
Example #9
0
 public CtorDefinitionBuilder(ObjectDefinitionBuilder <TObject> builder)
 {
     Holder  = builder;
     Builder = builder;
 }