当前位置: 首页>>代码示例>>C#>>正文


C# IDaemonProcess类代码示例

本文整理汇总了C#中IDaemonProcess的典型用法代码示例。如果您正苦于以下问题:C# IDaemonProcess类的具体用法?C# IDaemonProcess怎么用?C# IDaemonProcess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IDaemonProcess类属于命名空间,在下文中一共展示了IDaemonProcess类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateProcess

        /// <summary>
        /// This method provides a <see cref="IDaemonStageProcess"/> instance which is assigned to highlighting a single document
        /// </summary>
        public IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind kind)
        {
            if (process == null)
            throw new ArgumentNullException("process");

              return new InjectionHappyDetectorDaemonStageProcess(process, settings.GetValue((InjectionHappyDetectorSettings s) => s.MaximumParameters));
        }
开发者ID:prajeeshprathap,项目名称:ReSharperPlugins,代码行数:10,代码来源:InjectionHappyDetectorDaemonStage.cs

示例2: CreateProcess

        /// <summary>
        /// This method provides a <see cref="IDaemonStageProcess"/> instance which is assigned to highlighting a single document.
        /// </summary>
        protected override IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind, ICSharpFile file)
        {
            if (process == null)
                throw new ArgumentNullException("process");

            return new CloneDetectionDaemonStageProcess(process);
        }
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:10,代码来源:CloneDetectionDaemonStage.cs

示例3: CreateProcess

        /// <summary>
        /// This method provides a <see cref="IDaemonStageProcess"/> instance which is assigned to highlighting a single document
        /// </summary>
        public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind kind)
        {
            if (process == null)
                throw new ArgumentNullException("process");

            return new List<IDaemonStageProcess> { new ComplexityAnalysisDaemonStageProcess(process, 0) };
        }
开发者ID:mtashkinov,项目名称:YaccConstructor,代码行数:10,代码来源:AbstractAnalysisDaemonStage.cs

示例4: CreateProcess

 /// <summary>
 /// Provides an <see cref="IDaemonStageProcess"/> instance which is assigned to
 /// highlighting a single document
 /// </summary>
 public IDaemonStageProcess CreateProcess(IDaemonProcess process) {
     if (process == null) {
         throw new ArgumentNullException("process");
     }
     Logger.LogMessage("NHibernatePlugin: MappingFileAnalysisDaemonStage.CreateProcess called");
     return new MappingFileAnalysisDaemonStageProcess(process);
 }
开发者ID:hazzik,项目名称:ReSharper.NHibernate,代码行数:11,代码来源:MappingFileAnalysisDaemonStage.cs

示例5: CreateProcess

        public IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
        {
            if (process == null)
                throw new ArgumentNullException("process");

            return new MakeEnumComparisonTypeSafeDaemonStageProcess(process);
        }
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:7,代码来源:MakeEnumComparisonTypeSafeDaemonStage.cs

示例6: ContainerRegistrationAnalysisStageProcess

 public ContainerRegistrationAnalysisStageProcess(IDaemonProcess process, IContextBoundSettingsStore settingsStore, ITypeUsageManager typeUsageManager, IPatternManager patternManager)
 {
     this.process = process;
     this.settingsStore = settingsStore;
     this.typeUsageManager = typeUsageManager;
     this.patternManager = patternManager;
 }
开发者ID:dpvreony-forks,项目名称:AgentMulder,代码行数:7,代码来源:ContainerRegistrationAnalysisStageProcess.cs

示例7: CreateProcess

	    /// <summary>
	    /// Creates a code analysis process corresponding to this stage for analysing a file.
	    /// </summary>
	    /// <returns>Code analysis process to be executed or <c>null</c> if this stage is not available for this file.</returns>
	    public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind) {
		    var t4File = process.SourceFile.GetTheOnlyPsiFile(T4Language.Instance) as IT4File;
			if (t4File == null)
				return EmptyList<IDaemonStageProcess>.InstanceList;

		    return new[] { CreateProcess(process, t4File) };
	    }
开发者ID:mnaoumov,项目名称:ForTea,代码行数:11,代码来源:T4DaemonStage.cs

示例8: CreateProcess

        public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
        {
            IFile psiFile = process.SourceFile.GetTheOnlyPsiFile(RazorCSharpLanguage.Instance);
            if (psiFile == null)
                return Enumerable.Empty<IDaemonStageProcess>();

            return new[] { new UseOfSemicolonLiteralInRazorSyntaxDaemonProcess(process) };
        }
开发者ID:xavierdecoster,项目名称:ReSharper.RazorExtensions,代码行数:8,代码来源:UseOfSemicolonLiteralInRazorSyntaxDaemonStage.cs

示例9: Run

    public IFileStructure Run(IDaemonProcess process, IPsiSourceFile psiSourceFile, IContextBoundSettingsStore settingsStore, IFile file)
    {
      var psiFile = file as IPsiFile;
      if (psiFile == null)
        return null;

      return new PsiFileStructure(psiFile, settingsStore);
    }
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:8,代码来源:PsiFileStructureExplorer.cs

示例10: DaemonStageProcess

 public DaemonStageProcess(IDaemonProcess process, SearchDomainFactory searchDomainFactory, ICSharpFile csFile)
 {
     this.searchDomainFactory = searchDomainFactory;
     this.csFile = csFile;
     DaemonProcess = process;
     usages = process.GetStageProcess<CollectUsagesStageProcess>();
     Assertion.Assert(usages != null, "usages != null");
 }
开发者ID:TestStack,项目名称:TestStack.BDDfy.ReSharper,代码行数:8,代码来源:DaemonStage.cs

示例11: CreateProcess

        public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
        {
            IFile psiFile = process.SourceFile.GetNonInjectedPsiFile(JavaScriptLanguage.Instance);
            if (psiFile == null)
                yield return null;

            yield return new DaemonStageProcess(process);
        }
开发者ID:cfiet,项目名称:resharper-jshint,代码行数:8,代码来源:DaemonStage.cs

示例12: CreateProcess

    public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
    {
      IFile psiFile = process.SourceFile.GetNonInjectedPsiFile<CSharpLanguage>();
      if (psiFile == null)
        return Enumerable.Empty<IDaemonStageProcess>();

      return new [] { new UseInt16MaxValueLiteralDaemonProcess(process) };
    }
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:8,代码来源:UseInt16MaxValueLiteralDaemonStage.cs

示例13: ContainerRegistrationAnalysisStageProcess

        public ContainerRegistrationAnalysisStageProcess(IDaemonProcess process, IContextBoundSettingsStore settingsStore, ITypeUsageManager typeUsageManager, SolutionAnalyzer solutionAnalyzer)
        {
            this.process = process;
            this.settingsStore = settingsStore;
            this.typeUsageManager = typeUsageManager;

            cachedComponentRegistrations = solutionAnalyzer.Analyze().ToList();
        }
开发者ID:hotgazpacho,项目名称:AgentMulder,代码行数:8,代码来源:ContainerRegistrationAnalysisStageProcess.cs

示例14: CreateProcess

 public override IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
 {
   if (!IsSupported(process.SourceFile))
   {
     return EmptyList<IDaemonStageProcess>.InstanceList;
   }
   return new List<IDaemonStageProcess> { new IdentifierHighlighterProcess(process, settings) };
 }
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:8,代码来源:IdentifierHighlightingStage.cs

示例15: DaemonStageProcess

 /// <summary>
 /// Initializes a new instance of the <see cref="DaemonStageProcess"/> class.
 /// </summary>
 /// <param name="process">The process.</param>
 public DaemonStageProcess(IDaemonProcess process)
     : base(process)
 {
     this.stringEmptyAnalyzer = new StringEmptyAnalyzer(this.DaemonProcess.Solution);
       this.returnAnalyzer = new ReturnAnalyzer(this.DaemonProcess.Solution);
       this.documentThrownExceptionAnalyzer = new DocumentThrownExceptionAnalyzer(this.DaemonProcess.Solution);
       this.valueAnalysisAnalyzer = new ValueAnalysisAnalyzer(this.DaemonProcess.Solution);
 }
开发者ID:xerxesb,项目名称:agentjohnsonplugin,代码行数:12,代码来源:DaemonStageProcess.cs


注:本文中的IDaemonProcess类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。