Ejemplo n.º 1
0
        public override IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
#endif

        {
            if (!IsSupported(process.SourceFile))
            {
                return(null);
            }

            var collectUsagesStageProcess = process.GetStageProcess <CollectUsagesStageProcess>();
            var typeUsageManager          = new TypeUsageManager(collectUsagesStageProcess);

            return(new ContainerRegistrationAnalysisStageProcess(process, settings, typeUsageManager, solutionAnalyzer));
        }
        private IDaemonStageProcess DoCreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
        {
            if (!IsSupported(process.SourceFile))
            {
                return(null);
            }

            if (processKind != DaemonProcessKind.VISIBLE_DOCUMENT)
            {
                return(null);
            }

            var collectUsagesStageProcess = process.GetStageProcess <CollectUsagesStageProcess>();
            var typeUsageManager          = new TypeUsageManager(collectUsagesStageProcess);

            return(new ContainerRegistrationAnalysisStageProcess(process, settings, typeUsageManager, patternManager));
        }