Exemplo n.º 1
0
        protected internal virtual IList <TDefinitionEntity> ParseDefinitionResources(DeploymentEntity deployment,
                                                                                      Core.Model.Properties properties)
        {
            IList <TDefinitionEntity> definitions = new List <TDefinitionEntity>();

            foreach (ResourceEntity resource in deployment.Resources.Values)
            {
                LOG.DebugProcessingResource(resource.Name);
                if (IsResourceHandled(resource))
                {
                    var r = TransformResource(deployment, resource, properties);
                    foreach (var item in r)
                    {
                        definitions.Add(item);
                    }
                    //((List<TDefinitionEntity>)definitions).AddRange();
                }
            }
            return(definitions);
        }