Example #1
0
        public AssmanContext BuildContext(ResourceMode resourceMode, bool usePreCompilationReportIfPresent = true)
        {
            IResourceFinder             fileFinder           = ResourceFinderFactory.Null;
            IPreCompiledReportPersister preCompiledPersister = NullPreCompiledPersister.Instance;

            if (!String.IsNullOrEmpty(RootFilePath))
            {
                fileFinder = ResourceFinderFactory.GetInstance(RootFilePath);
                if (usePreCompilationReportIfPresent)
                {
                    preCompiledPersister = CompiledFilePersister.ForWebDirectory(RootFilePath);
                }
            }

            return(BuildContext(resourceMode, fileFinder, preCompiledPersister));
        }
Example #2
0
        public void SavePreConsolidationReport(PreCompilationReport report)
        {
            var preConsolidationPersister = CompiledFilePersister.ForWebDirectory(RootFilePath);

            preConsolidationPersister.SavePreConsolidationInfo(report);
        }