public ModuleModel(string name, MetaInfo metaInfo, TransientsModel transientsModel, EntitiesModel entitiesModel, ObjectsModel objectsModel, ValuesModel valuesModel, ServicesModel servicesModel, ImportedServicesModel importedServicesModel) { this.Name = name; this.MetaInfo = metaInfo; this.Transients = transientsModel; this.entities = entitiesModel; this.Objects = objectsModel; this.Values = valuesModel; this.Services = servicesModel; this.ImportedServicesModel = importedServicesModel; this.layerModel = null; }
public ModuleInstance(ModuleModel moduleModel, LayerInstance layerInstance, TransientsModel transientsModel, EntitiesModel entitiesModel, ObjectsModel objectsModel, ValuesModel valuesModel, ServicesModel servicesModel, ImportedServicesModel importedServicesModel) { this.Model = moduleModel; this.LayerInstance = layerInstance; this.Transients = new TransientsInstance(transientsModel, this); this.Entities = new EntitiesInstance(entitiesModel, this); this.Objects = new ObjectsInstance(objectsModel, this); this.Values = new ValuesInstance(valuesModel, this); this.Services = servicesModel.NewInstance(this); this.ImportedServices = importedServicesModel.NewInstance(this); this.TransientBuilderFactory = new TransientBuilderFactoryInstance(this); this.ObjectBuilderFactory = new ObjectBuilderFactoryInstance(); this.ValueBuilderFactory = new ValueBuilderFactoryInstance(this); this.UnitOfWorkFactory = new UnitOfWorkFactoryInstance(); this.ServiceFinder = new ServiceFinderInstance(this); this.entityFinders = new Dictionary<Type, EntityFinder>(); this.transientFinders = new Dictionary<Type, TransientFinder>(); this.ObjectFinders = new Dictionary<Type, ObjectFinder>(); this.valueFinders = new Dictionary<Type, ValueFinder>(); }
public ModuleInstance(ModuleModel moduleModel, LayerInstance layerInstance, TransientsModel transientsModel, EntitiesModel entitiesModel, ObjectsModel objectsModel, ValuesModel valuesModel, ServicesModel servicesModel, ImportedServicesModel importedServicesModel) { this.Model = moduleModel; this.LayerInstance = layerInstance; this.Transients = new TransientsInstance(transientsModel, this); this.Entities = new EntitiesInstance(entitiesModel, this); this.Objects = new ObjectsInstance(objectsModel, this); this.Values = new ValuesInstance(valuesModel, this); this.Services = servicesModel.NewInstance(this); this.ImportedServices = importedServicesModel.NewInstance(this); this.TransientBuilderFactory = new TransientBuilderFactoryInstance(this); this.ObjectBuilderFactory = new ObjectBuilderFactoryInstance(); this.ValueBuilderFactory = new ValueBuilderFactoryInstance(this); this.UnitOfWorkFactory = new UnitOfWorkFactoryInstance(); this.ServiceFinder = new ServiceFinderInstance(this); this.entityFinders = new Dictionary <Type, EntityFinder>(); this.transientFinders = new Dictionary <Type, TransientFinder>(); this.ObjectFinders = new Dictionary <Type, ObjectFinder>(); this.valueFinders = new Dictionary <Type, ValueFinder>(); }