Пример #1
0
        internal static void FlattenDomain(
            IProgress progress, bool writeVerbose,
            SortedDictionary <string, XElement> highLevelData,
            SortedDictionary <string, XElement> sortedData,
            string pathRoot)
        {
            var anthropologyBaseDir = Path.Combine(pathRoot, SharedConstants.Anthropology);

            if (!Directory.Exists(anthropologyBaseDir))
            {
                return;                 // Nothing to do.
            }
            if (writeVerbose)
            {
                progress.WriteVerbose("Collecting the anthropology data....");
            }
            else
            {
                progress.WriteMessage("Collecting the anthropology data....");
            }
            AnthropologyBoundedContextService.FlattenContext(highLevelData, sortedData, anthropologyBaseDir);
        }
Пример #2
0
        internal static void WriteNestedDomainData(IProgress progress, bool writeVerbose, string rootDir,
                                                   IDictionary <string, XElement> wellUsedElements,
                                                   IDictionary <string, SortedDictionary <string, byte[]> > classData,
                                                   Dictionary <string, string> guidToClassMapping)
        {
            var anthropologyBaseDir = Path.Combine(rootDir, SharedConstants.Anthropology);

            if (!Directory.Exists(anthropologyBaseDir))
            {
                Directory.CreateDirectory(anthropologyBaseDir);
            }

            FLExProjectSplitter.CheckForUserCancelRequested(progress);
            if (writeVerbose)
            {
                progress.WriteVerbose("Writing the anthropology data....");
            }
            else
            {
                progress.WriteMessage("Writing the anthropology data....");
            }
            AnthropologyBoundedContextService.NestContext(anthropologyBaseDir, wellUsedElements, classData, guidToClassMapping);
        }