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(); }
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; }
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; }
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; }