Exemplo n.º 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)));
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public FactoryMethodArgDefinitionBuilder(ObjectDefinitionBuilder <TObject> holder)
 {
     _holder = holder;
 }
Exemplo n.º 4
0
 public PropertyDefinitionBuilder(ObjectDefinitionBuilder <TObject> builder, string propertyName)
 {
     _builder      = builder;
     _propertyName = propertyName;
 }
Exemplo n.º 5
0
 public ProxyFactoryDefinitionBuilder(string id)
 {
     _builder = new ObjectDefinitionBuilder <ProxyFactoryObject>(id);
     _ref     = new ObjectRef <TObject>(id);
     SetTargetInterfaces();
 }
Exemplo n.º 6
0
 public FactoryMethodDefinitionBuilder(ObjectDefinitionBuilder <TObject> holder)
     : base(holder, holder)
 {
 }
Exemplo n.º 7
0
 public GenericFactoryMethodDefinitionBuilder(ObjectDefinitionBuilder <TObject> holder, TBuilder builder)
 {
     _holder  = holder;
     _builder = builder;
 }
Exemplo n.º 8
0
 public LookupMethodDefinitionBuilder(ObjectDefinitionBuilder <TObject> builder, string methodName)
 {
     _builder    = builder;
     _methodName = methodName;
 }
Exemplo n.º 9
0
 public CtorDefinitionBuilder(ObjectDefinitionBuilder <TObject> builder)
 {
     Holder  = builder;
     Builder = builder;
 }