Пример #1
0
 public Structure GetStructure(Uri uri)
 {
     Model.Profile.ProfileStructureComponent component = loader.LocateStructure(uri);
     if (component != null)
     {
         Structure structure = harvester.HarvestStructure(component, uri);
         return(structure);
     }
     return(null);
 }
        //private T Resolve<T>(Uri uri) where T : Model.Resource
        //{
        //    Model.Resource resource = source.LoadConformanceResourceByUrl(uri.ToString());
        //    return (T)resource;
        //}


        public Structure GetStructure(Uri uri)
        {
            Model.StructureDefinition sd = source.LoadConformanceResourceByUrl(uri.ToString()) as Model.StructureDefinition;

            if (sd != null)
            {
                Structure structure = harvester.HarvestStructure(sd);
                return(structure);
            }

            return(null);
        }