예제 #1
0
 public LayerInstance(LayerModel model, ApplicationInstance applicationInstance, IList<ModuleInstance> moduleInstances, UsedLayersInstance usedLayersInstance)
 {
     this.Model = model;
     this.ApplicationInstance = applicationInstance;
     this.moduleInstances = moduleInstances;
     this.UsedLayersInstance = usedLayersInstance;
     //   this.moduleActivator = new Activator();
 }
예제 #2
0
파일: Binder.cs 프로젝트: attila3453/alsing
 public Resolution(ApplicationModel application,
                   LayerModel layer,
                   ModuleModel module,
                   ObjectDescriptor objectDescriptor,
                   CompositeMethodModel method,
                   FieldInfo field)
 {
     this.Application = application;
     this.Layer = layer;
     this.Module = module;
     this.ObjectDescriptor = objectDescriptor;
     this.Method = method;
     this.Field = field;
 }
예제 #3
0
        public static LayerModel NewModel(LayerAssembly layer)
        {
            var moduleModels = new List<ModuleModel>();

            foreach (ModuleAssemblyImpl module in layer.Modules)
            {
                ModuleModel moduleModel = module.AssembleModule();
                moduleModels.Add(moduleModel);
            }

            //TODO:fix usedLayerModel

            var usedLayersModel = new List<LayerModel>();

            var layerModel = new LayerModel(layer.Name, layer.MetaInfo, usedLayersModel, moduleModels);

            return layerModel;
        }
예제 #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;
 }