Ejemplo n.º 1
0
        /// <summary>
        /// 创建rdlc的Report
        /// </summary>
        /// <param name="documentName"></param>
        /// <returns></returns>
        public static string CreateMsReportFile(string documentName)
        {
            if (System.IO.File.Exists(documentName))
            {
                return(documentName);
            }
            else
            {
                ResourceContent data = ResourceInfoHelper.ResolveResource(documentName, ResourceType.MsReport);
                if (data != null)
                {
                    switch (data.Type)
                    {
                    case ResourceContentType.File:
                        return(data.Content.ToString());

                    case ResourceContentType.Binary:
                        string fileName = System.IO.Path.GetTempFileName();
                        using (System.IO.StreamWriter sw = new System.IO.StreamWriter(fileName, false))
                        {
                            sw.Write(data);
                        }
                        return(fileName);

                    default:
                        throw new ArgumentException("Invalid Resource Content Type!");
                    }
                }
                else
                {
                    throw new ArgumentException(string.Format("Can't find resouce of {0}!", documentName));
                }
            }
        }
Ejemplo n.º 2
0
        public void AddContent(Document document, ResourceContent content)
        {
            if (content.Resource != null)
            {
                if (!string.IsNullOrEmpty(content.Resource.Text))
                {
                    document.add(new Field(FieldName.Content, content.Resource.Text, Field.Store.YES, Field.Index.ANALYZED));
                }
                if (!string.IsNullOrEmpty(content.Resource.Title))
                {
                    document.add(new Field(FieldName.Content, content.Resource.Title, Field.Store.NO, Field.Index.ANALYZED));
                }

                var faq = content.Resource as Faq;
                if (faq != null)
                {
                    if (!string.IsNullOrEmpty(faq.Keywords))
                    {
                        document.add(new Field(FieldName.Content, faq.Keywords, Field.Store.YES, Field.Index.ANALYZED));
                    }

                    _booster.SetHelpfulBoost(document, faq.HelpfulYes - faq.HelpfulNo);
                }
            }
        }
Ejemplo n.º 3
0
        void IContentHandler.AddContent(Document document, ResourceContent content)
        {
            var field = new Field(FieldName.SubcategoryId, content.Resource.SubcategoryId.ToFieldValue(), Field.Store.NO, Field.Index.NOT_ANALYZED_NO_NORMS);

            field.setOmitTermFreqAndPositions(true);
            _booster.SetBoost(field);
            document.add(field);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Create a new ResourceContent object.
        /// </summary>
        /// <param name="id">Initial value of ID.</param>
        /// <param name="content">Initial value of Content.</param>
        public static ResourceContent CreateResourceContent(int id, string content)
        {
            ResourceContent resourceContent = new ResourceContent();

            resourceContent.ID      = id;
            resourceContent.Content = content;
            return(resourceContent);
        }
Ejemplo n.º 5
0
        void IContentHandler.AddContent(Document document, ResourceContent content)
        {
            var field = new Field(FieldName.Popularity, Encode(content.Views), Field.Store.NO, Field.Index.NOT_ANALYZED_NO_NORMS);

            field.setOmitTermFreqAndPositions(true);
            _booster.SetBoost(field);
            document.add(field);
        }
        public void Test1()
        {
            Initializer initializer = new Initializer("", constraints, categories);
            Queue<Url> queue = new Queue<Url>();
            ResourceContent resource = new ResourceContent("www.nana10.co.il", ResourceType.HtmlResource,
                getFileContent("nana10.txt"), 200, 0);

            HtmlPageCategorizationProcessor processor = new HtmlPageCategorizationProcessor(initializer,queue);
            processor.process(resource);
        }
Ejemplo n.º 7
0
        public void Test1()
        {
            Initializer     initializer = new Initializer("", constraints, categories);
            Queue <Url>     queue       = new Queue <Url>();
            ResourceContent resource    = new ResourceContent("www.nana10.co.il", ResourceType.HtmlResource,
                                                              getFileContent("nana10.txt"), 200, 0);

            HtmlPageCategorizationProcessor processor = new HtmlPageCategorizationProcessor(initializer, queue);

            processor.process(resource);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Disposes the contents of this service.
        /// </summary>
        public void Dispose()
        {
            Content?.Dispose();
            InternContent?.Dispose();
            ResourceContent?.Dispose();
            Pixel.Dispose();
            Font = null;
#if DX
            GetRenderTargetManager?.Dispose();
            RenderTargetTimer?.Dispose();
#endif
        }
Ejemplo n.º 9
0
 /// <summary>
 /// Setups the content of the view from.
 /// </summary>
 /// <param name="view">The view.</param>
 /// <param name="content">The content.</param>
 private void SetupViewFromContent(ResourceView view, ResourceContent content)
 {
     view.Setup(
         content.NegativeColor,
         content.FillColor,
         content.Sprite,
         content.BarText,
         content.Numerator,
         content.Denominator,
         content.Title,
         content.TypeDescription);
 }
Ejemplo n.º 10
0
        public static CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReportDocument(string documentName)
        {
            try
            {
                CrystalDecisions.CrystalReports.Engine.ReportDocument ret =
                    Feng.Utils.ReflectionHelper.CreateInstanceFromName(documentName) as CrystalDecisions.CrystalReports.Engine.ReportDocument;
                if (ret != null)
                {
                    return(ret);
                }
            }
            catch (Exception)
            {
            }

            ResourceContent res = ResourceInfoHelper.ResolveResource(documentName, ResourceType.Report);

            if (res != null)
            {
                switch (res.Type)
                {
                case ResourceContentType.File:
                {
                    CrystalDecisions.CrystalReports.Engine.ReportDocument reportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                    reportDocument.Load(res.Content.ToString());
                    return(reportDocument);
                }

                case ResourceContentType.Binary:
                {
                    byte[] data     = (byte[])res.Content;
                    string fileName = System.IO.Path.GetTempFileName();
                    using (System.IO.FileStream fs = new System.IO.FileStream(fileName, System.IO.FileMode.Create))
                    {
                        fs.Write(data, 0, data.Length);
                    }
                    CrystalDecisions.CrystalReports.Engine.ReportDocument reportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                    reportDocument.Load(fileName);
                    return(reportDocument);
                }

                default:
                    throw new ArgumentException("Invalid Resource Content Type!");
                }
            }
            else
            {
                throw new ArgumentException(string.Format("Can't find resouce of {0}!", documentName));
            }
        }
Ejemplo n.º 11
0
        public static System.Data.DataSet CreateDataset(string datasetName)
        {
            try
            {
                System.Data.DataSet ds = Feng.Utils.ReflectionHelper.CreateInstanceFromName(datasetName) as System.Data.DataSet;
                if (ds != null)
                {
                    return(ds);
                }
            }
            catch (Exception)
            {
            }

            ResourceContent dataSetXmlSchema = ResourceInfoHelper.ResolveResource(datasetName, ResourceType.Dataset);

            if (dataSetXmlSchema != null)
            {
                switch (dataSetXmlSchema.Type)
                {
                case ResourceContentType.File:
                {
                    System.Data.DataSet ds = new System.Data.DataSet();
                    using (System.IO.StreamReader sr = new System.IO.StreamReader(dataSetXmlSchema.Content.ToString()))
                    {
                        ds.ReadXmlSchema(sr);
                    }
                    return(ds);
                }

                case ResourceContentType.String:
                {
                    System.Data.DataSet ds = new System.Data.DataSet();
                    using (System.IO.StringReader sr = new System.IO.StringReader(dataSetXmlSchema.Content.ToString()))
                    {
                        ds.ReadXmlSchema(sr);
                    }
                    return(ds);
                }

                default:
                    throw new ArgumentException("Invalid Resource Content Type!");
                }
            }
            else
            {
                throw new ArgumentException(string.Format("Can't find resouce of {0}!", datasetName));
            }
        }
        private LocalizedString GetTranslation(string keyName, params object[] arguments)
        {
            //Autoset gender if translation ends with "[f]"
            var hasLocalizedGenderF = arguments.Any(e => e is LocalizedString && e.ToString().EndsWith(GENDER_MARK));

            if (hasLocalizedGenderF)
            {
                var kyHasF = keyName.EndsWith("{f}");
                var args   = RemoveGenderMarkOfArguments(arguments);
                return(GetTranslation(kyHasF ? keyName : $"{keyName}{{f}}", args));
            }

            var hasTranslation = ResourceContent.TryGetValue(keyName, out var jToken) &&
                                 (jToken.HasValues || jToken.Value <string>() != null);

            //If the translation key was not found
            if (!hasTranslation)
            {
                return(new LocalizedString(keyName, string.Empty, true, LocaleFileName));
            }

            //Plural form translation
            if (jToken.HasValues)
            {
                var canBePluralForm = IsNumericType(arguments.FirstOrDefault());
                var pluralQuantity  = canBePluralForm
                                        ? Math.Abs(double.Parse(arguments.First().ToString()))
                                        : 1;

                dynamic dynToken = jToken;
                string  val      = pluralQuantity == 0
                                ? dynToken.Zero
                                : (pluralQuantity == 1 ? dynToken.One : dynToken.Other);
                return(new LocalizedString(
                           keyName, string.Format(val, arguments), string.IsNullOrWhiteSpace(val)));
            }

            //Single translation
            var value = jToken.Value <string>() ?? string.Empty;

            return(new LocalizedString(
                       keyName, string.Format(value, arguments), string.IsNullOrWhiteSpace(value)));
        }
Ejemplo n.º 13
0
        private static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
        {
            //System.Windows.Forms.MessageBox.Show("Try load " + args.Name);
            //m_log.Info("Try load " + args.Name);
            //return null;

            try
            {
                string strFileName = args.Name.Split(',')[0];

                // NHibernate
                if (strFileName.EndsWith(".XmlSerializers") || strFileName.EndsWith(".resources"))
                {
                    return(null);
                }

                ResourceContent rc = ResourceInfoHelper.ResolveResource(strFileName + ".dll", ResourceType.File);
                if (rc == null)
                {
                    return(null);
                }

                switch (rc.Type)
                {
                case ResourceContentType.File:
                    return(System.Reflection.Assembly.LoadFrom(rc.Content.ToString()));

                default:
                    return(null);
                }
            }
            catch (Exception)
            {
                return(null);
            }
        }
Ejemplo n.º 14
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="resourceName"></param>
        /// <param name="resourceType"></param>
        /// <param name="forcePersist"></param>
        /// <returns></returns>
        public static ResourceContent ResolveResource(string resourceName, ResourceType resourceType, bool forcePersist)
        {
            ResolveResourceDependency(resourceName, resourceType);

            switch (resourceType)
            {
            // Text
            case ResourceType.PythonSource:
            case ResourceType.MsReport:
            case ResourceType.Dataset:
            case ResourceType.Config:
            {
                string fileName = ServiceProvider.GetService <IApplicationDirectory>().GetLocalResourcePath(resourceName);
                if (System.IO.File.Exists(fileName))
                {
                    //return new ResourceContent { Type = ResourceContentType.String, Content = System.IO.File.ReadAllText(fileName) };
                    return(new ResourceContent {
                            Type = ResourceContentType.File, Content = fileName
                        });
                }

                fileName = ServiceProvider.GetService <IApplicationDirectory>().GetServerResourcePath(resourceName);
                if (System.IO.File.Exists(fileName))
                {
                    string s   = System.IO.File.ReadAllText(fileName);
                    string md5 = Cryptographer.Md5(s);
                    if (IsResourceMd5Right(resourceName, md5))
                    {
                        //return new ResourceContent { Type = ResourceContentType.String, Content = s };
                        return(new ResourceContent {
                                Type = ResourceContentType.File, Content = fileName
                            });
                    }
                }
                bool            persistLocal;
                ResourceContent res = GetResource(resourceName, resourceType, out persistLocal);
                if (res == null)
                {
                    return(null);
                }

                if (res.Type != ResourceContentType.String)
                {
                    throw new ArgumentException("Resource should be String Type!");
                }
                if (forcePersist || persistLocal)
                {
                    Feng.Utils.IOHelper.TryCreateDirectory(fileName);
                    System.IO.File.WriteAllText(fileName, (string)res.Content);
                    return(new ResourceContent {
                            Type = ResourceContentType.File, Content = fileName
                        });
                }
                else
                {
                    return(res);
                }
            }

            // Binary
            case ResourceType.Report:
            case ResourceType.File:
            {
                string fileName = ServiceProvider.GetService <IApplicationDirectory>().GetLocalResourcePath(resourceName);
                if (System.IO.File.Exists(fileName))
                {
                    //return System.IO.File.ReadAllBytes(fileName);
                    return(new ResourceContent {
                            Type = ResourceContentType.File, Content = fileName
                        });
                }
                fileName = ServiceProvider.GetService <IApplicationDirectory>().GetServerResourcePath(resourceName);
                if (System.IO.File.Exists(fileName))
                {
                    byte[] s   = System.IO.File.ReadAllBytes(fileName);
                    string md5 = Cryptographer.Md5(Convert.ToBase64String(s));
                    if (IsResourceMd5Right(resourceName, md5))
                    {
                        //return s;
                        return(new ResourceContent {
                                Type = ResourceContentType.File, Content = fileName
                            });
                    }
                }
                bool            persistLocal;
                ResourceContent res = GetResource(resourceName, resourceType, out persistLocal);
                if (res == null)
                {
                    return(null);
                }

                if (res.Type != ResourceContentType.Binary)
                {
                    throw new ArgumentException("Resource should be Binary[] Type!");
                }
                if (forcePersist || persistLocal)
                {
                    Feng.Utils.IOHelper.TryCreateDirectory(fileName);
                    System.IO.File.WriteAllBytes(fileName, (byte[])res.Content);
                    return(new ResourceContent {
                            Type = ResourceContentType.File, Content = fileName
                        });
                }
                else
                {
                    return(res);
                }
            }
            }

            return(null);
        }
        /// <summary>
        /// 执行Python。通过source和是否存在文件自动判别执行类型
        /// 如果是文件(.py结尾)
        /// 首先在Script目录下寻找.py源文件名,再在数据库ResourceInfo中寻找
        /// 再在Script目录下寻找单个.py编译成的同名Assembly。
        /// 如果还找不到,则在工作目录下找"PythonScript.dll,执行对应方法。
        /// 在.py文件中,执行的是execute方法(如果带当前窗口参数,参数是masterForm)
        /// 如果不是,则按照Statement执行。
        /// </summary>
        /// <param name="source"></param>
        /// <param name="processParams"></param>
        /// <returns></returns>
        public static object TryExecutePython(string source, Dictionary <string, object> processParams)
        {
            try
            {
                if (source.EndsWith(".py", StringComparison.InvariantCulture))
                {
                    string filePath = ServiceProvider.GetService <IApplicationDirectory>().GetLocalResourcePath(source);
                    if (System.IO.File.Exists(filePath))
                    {
                        return(PythonHelper.ExecutePythonFile(filePath, processParams));
                    }
                    else
                    {
                        ResourceContent pythonResource = ResourceInfoHelper.ResolveResource(source, ResourceType.PythonSource);

                        if (pythonResource != null)
                        {
                            switch (pythonResource.Type)
                            {
                            case ResourceContentType.File:
                                return(PythonHelper.ExecutePythonFile(pythonResource.Content.ToString(), processParams));

                            case ResourceContentType.String:
                                return(PythonHelper.ExecutePythonStatement(pythonResource.Content.ToString(), processParams));

                            default:
                                throw new NotSupportedException("Invalid Resource Content Type!");
                            }
                        }
                        else
                        {
                            string singleAssemblyPath = System.IO.Path.ChangeExtension(filePath, ".dll");
                            if (System.IO.File.Exists(singleAssemblyPath))
                            {
                                return(PythonHelper.ExecutePythonAssembly(singleAssemblyPath, System.IO.Path.GetFileName(filePath), processParams));
                            }
                            else
                            {
                                string combileAssemblyPath = System.IO.Path.Combine(ServiceProvider.GetService <IApplicationDirectory>().GetMainDirectory(), s_pythonCompiledAssembly);
                                if (System.IO.File.Exists(combileAssemblyPath))
                                {
                                    return(PythonHelper.ExecutePythonAssembly(combileAssemblyPath, System.IO.Path.GetFileName(filePath), processParams));
                                }
                                else
                                {
                                    return(null);
                                }
                            }
                        }
                    }
                }
                else
                {
                    if (source.Contains("result = "))
                    {
                        return(PythonHelper.ExecutePythonStatement(source, processParams));
                    }
                    else
                    {
                        return(PythonHelper.ExecutePythonExpression(source, processParams));
                    }
                }
            }
            catch (Exception ex)
            {
                throw new ArgumentException(string.Format("Python source {0} is invalid!", source), ex);
            }
        }
Ejemplo n.º 16
0
 /// <summary>
 /// There are no comments for ResourceContentSet in the schema.
 /// </summary>
 public void AddToResourceContentSet(ResourceContent resourceContent)
 {
     base.AddObject("ResourceContentSet", resourceContent);
 }
Ejemplo n.º 17
0
        public override BuildStep CreateInitialSteps(BuildGroup group)
        {
            ReferenceGroup refGroup = group as ReferenceGroup;

            if (refGroup == null)
            {
                throw new BuildException("The build engine requires reference group.");
            }
            if (_listFormats == null || _listFormats.Count == 0)
            {
                return(null);
            }

            BuildMultiStep listSteps = new BuildMultiStep();

            listSteps.Message     = "References topics for the group: " + group.Name;
            listSteps.LogTitle    = String.Empty;
            listSteps.LogTimeSpan = true;

            BuildSettings settings      = this.Settings;
            string        sandcastleDir = this.Context.StylesDirectory;
            BuildStyle    outputStyle   = settings.Style;

            if (String.IsNullOrEmpty(sandcastleDir))
            {
                return(null);
            }

            // 1. Initialize the conceptual topics...
            StepReferenceInit stepInit = new StepReferenceInit(refGroup);

            stepInit.Message  = "Initializing and copying reference contents";
            stepInit.LogTitle = String.Empty;

            listSteps.Add(stepInit);

            string helpStyle = BuildStyle.StyleFolder(
                outputStyle.StyleType);
            string workingDir = this.Context.WorkingDirectory;

            // 2. Ensure that we have a valid list of folders...
            IList <string>             listFolders = new List <string>();
            IDictionary <string, bool> dicFolders  = this.GetOutputFolders(listFolders);

            // 3. Handle the resources...
            StepDirectoryCopy copyResources = new StepDirectoryCopy(
                workingDir);

            copyResources.LogTitle = String.Empty;
            copyResources.Message  = "Copying user-defined resources.";
            IList <ResourceContent> resourceContents = group.ResourceContents;

            if (resourceContents != null && resourceContents.Count != 0)
            {
                int contentCount = resourceContents.Count;
                for (int j = 0; j < contentCount; j++)
                {
                    ResourceContent resourceContent = resourceContents[j];
                    if (resourceContent == null || resourceContent.Count == 0)
                    {
                        continue;
                    }

                    int itemCount = resourceContent.Count;

                    for (int i = 0; i < itemCount; i++)
                    {
                        ResourceItem resource = resourceContent[i];
                        if (resource != null && !resource.IsEmpty)
                        {
                            string destFolder = resource.Destination;
                            copyResources.Add(resource.Source, destFolder);

                            // Add this to the output folders so that it is copied
                            // to the final output/build directories...
                            if (destFolder.StartsWith("Output",
                                                      StringComparison.OrdinalIgnoreCase))
                            {
                                DirectoryInfo info = new DirectoryInfo(destFolder);
                                destFolder = info.Name;
                                if (!String.IsNullOrEmpty(destFolder) &&
                                    !dicFolders.ContainsKey(destFolder))
                                {
                                    dicFolders.Add(destFolder, true);
                                    listFolders.Add(destFolder);
                                }
                            }
                        }
                    }
                }
            }

            if (copyResources.IsValid)
            {
                listSteps.Add(copyResources);
            }
            else
            {
                StepNone placeHolder = new StepNone();
                placeHolder.LogTitle = String.Empty;
                placeHolder.Message  = "Copying user-defined resources.";
                listSteps.Add(placeHolder);
            }

            _listFolders = listFolders;

            this.CreateReflectionSteps(listSteps, refGroup,
                                       sandcastleDir, helpStyle);

            if (listSteps.Count != 0)
            {
                return(listSteps);
            }

            return(null);
        }
Ejemplo n.º 18
0
 void IContentHandler.AddContent(Document document, ResourceContent content)
 {
     AddContent(document, content.Resource.CreatedTime);
 }
Ejemplo n.º 19
0
        public void Test2()
        {
            List <String> urls = new List <string>();

            urls.Add("http://www.autonews.com/");
            urls.Add("http://www.geonius.com/www/");
            urls.Add("http://en.wikipedia.org/wiki/Main_Page");
            urls.Add("http://www.computerworld.com/");
            List <string> seeds = StorageSystem.StorageSystem.getInstance().getSeedList(taskId);

            foreach (string seed in seeds)
            {
                urls.Add(seed);
            }

            List <Category> _categories;
            Constraints     _constraints;

            _categories  = StorageSystem.StorageSystem.getInstance().getCategories(taskId);
            _constraints = StorageSystem.StorageSystem.getInstance().getRestrictions(taskId);

            StorageSystem.StorageSystem.getInstance().getSeedList(taskId);
            Filter      filter      = new Filter("http://", _constraints);
            Categorizer categorizer = new Categorizer(_categories);
            Ranker      ranker      = new Ranker(categorizer);
            Extractor   extractor   = new Extractor();

            HttpResourceFetcher httpfetcher = new HttpResourceFetcher();


            foreach (String url in urls)
            {
                DateTime        startTime = DateTime.Now;
                ResourceContent resource  = null;
                if (httpfetcher.canFetch(url))
                {
                    resource = httpfetcher.fetch(url, 10000, 100);
                }

                DateTime fetchEndTime = DateTime.Now;

                if ((resource == null) || (resource.getResourceContent() == null))
                {
                    continue;
                }

                /*** 0. fetching the link from the internet ***/
                TimeSpan fetchingTime = fetchEndTime - startTime;

                List <LinkItem> listOfLinks = new List <LinkItem>();
                //extract all the links in page
                listOfLinks = extractor.extractLinks(resource.getResourceUrl(), resource.getResourceContent());
                RuntimeStatistics.addToExtractedUrls(listOfLinks.Count);

                DateTime extEndTime = DateTime.Now;

                /*** 1. Extracting the link from the request ***/
                TimeSpan extRequest = extEndTime - fetchEndTime;

                //reset the dictionary in filter that contains the urls from the same page
                filter.resetDictionary();
                int filteredUrlsCount = 0;
                foreach (LinkItem item in listOfLinks)
                {
                    //Filter the links and return only links that can be crawled
                    List <String> links = new List <String>();
                    links.Add(item.getLink());
                    List <String> filteredLinks = filter.filterLinks(links);

                    //If filteredLinks is not empty
                    if (filteredLinks.Count > 0)
                    {
                        filteredUrlsCount++;
                        Url url1 = new Url(filteredLinks[0], hashUrl(filteredLinks[0]), ranker.rankUrl(resource, item),
                                           item.getDomainUrl(), hashUrl(item.getDomainUrl()));
                        deployLinksToFrontier(url1);
                        RuntimeStatistics.addToFeedUrls(1);
                    }
                }

                DateTime catStartTime = DateTime.Now;

                /*** 2. Ranking and deployment to the frontier ***/
                TimeSpan rankTotalRequest = catStartTime - extEndTime;

                //Ascribe the url to all the categories it is belonged to.
                List <Result> classifiedResults = categorizer.classifyContent(resource.getResourceContent(),
                                                                              resource.getResourceUrl());
                if (classifiedResults.Count != 0)
                {
                    RuntimeStatistics.addToCrawledUrls(1);
                }

                DateTime catEndTime = DateTime.Now;

                /*** 3. Classification of the current request ***/
                TimeSpan catTotalRequest = catEndTime - catStartTime;

                foreach (Result classifiedResult in classifiedResults)
                {
                    Result result = new Result("0", classifiedResult.getUrl(), classifiedResult.getCategoryID(),
                                               resource.getRankOfUrl(), classifiedResult.getTrustMeter());
                    deployResourceToStorage(result);
                }

                DateTime endTime = DateTime.Now;

                /*** 4. deployment to the database (result) ***/
                TimeSpan deployRequest = endTime - catEndTime;

                /*** 5. Total processing time ***/
                TimeSpan totalRequest = endTime - startTime;
            }
        }
 public IEnumerable <LocalizedString> GetAllStrings(bool includeParentCultures)
 => ResourceContent.Values().
 Select(i => new LocalizedString(i.Type.ToString(), i.Value <string>()));
Ejemplo n.º 21
0
 public CustomResourceStore(ResourceContent content)
 {
     _content = content;
 }
Ejemplo n.º 22
0
 public void UpdateResourceContent(Hl7.Fhir.Model.Resource modelResource, ResourceContent resourceContent)
 {
 }