예제 #1
0
        public ServicesInstance(ServicesModel servicesModel, List <ServiceReference> serviceReferences)
        {
            this.servicesModel     = servicesModel;
            this.serviceReferences = serviceReferences;

            foreach (ServiceReference serviceReference in serviceReferences)
            {
                this.mapIdentityServiceReference.Add(serviceReference.Identity, serviceReference);
            }
        }
예제 #2
0
        public ServicesInstance(ServicesModel servicesModel, List<ServiceReference> serviceReferences)
        {
            this.servicesModel = servicesModel;
            this.serviceReferences = serviceReferences;

            foreach (ServiceReference serviceReference in serviceReferences)
            {
                this.mapIdentityServiceReference.Add(serviceReference.Identity, serviceReference);
            }
        }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
        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>();
        }
예제 #6
0
        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>();
        }