• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IContextBoundSettingsStore类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: 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


示例2: 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


示例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>
        /// 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


示例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: 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


示例7: NancyDaemonStageProcess

 public NancyDaemonStageProcess(SearchDomainFactory searchDomainFactory, [NotNull] IDaemonProcess daemonProcess,
     [CanBeNull] CollectUsagesStageProcess collectUsagesStageProcess, IContextBoundSettingsStore settingsStore)
 {
     DaemonProcess = daemonProcess;
     this.searchDomainFactory = searchDomainFactory;
     this.collectUsagesStageProcess = collectUsagesStageProcess;
     this.settingsStore = settingsStore;
 }
开发者ID:jimmason,项目名称:Nancy.ReSharper,代码行数:8,代码来源:NancyDaemonStageProcess.cs


示例8: 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


示例9: 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


示例10: 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


示例11: 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


示例12: 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


示例13: Format

		public override ITreeRange Format(
			ITreeNode firstElement,
			ITreeNode lastElement,
			CodeFormatProfile profile,
			IProgressIndicator progressIndicator,
			IContextBoundSettingsStore overrideSettingsStore = null,
			IPotentSettingsTracker settingsTracker = null)
			=> new TreeRange(firstElement, lastElement);
开发者ID:MrJul,项目名称:ForTea,代码行数:8,代码来源:T4CodeFormatter.cs


示例14: 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


示例15: AcceptTyping

        public bool AcceptTyping(char c, ITextControl textControl, IContextBoundSettingsStore boundSettingsStore)
        {
            if (c == ':') return true;

            if (EmojiCompletionContextProvider.IsEmojiChar(c))
                return this.MatchText(textControl, 1, text => text[0] == ':');

            return false;
        }
开发者ID:hmemcpy,项目名称:ReSharper.ReMoji,代码行数:9,代码来源:EmojiAutoCompletionStrategy.cs


示例16: CreateContext

		public IParameterInfoContext CreateContext(ISolution solution, IDocument document, int caretOffset, int expectedLParenthOffset, char invocationChar,
			IContextBoundSettingsStore contextBoundSettingsStore) {
			IParameterInfoContextFactory factory = _csParameterInfoContextFactory.Value;
			IParameterInfoContext context = factory != null
				? factory.CreateContext(solution, document, caretOffset, expectedLParenthOffset, invocationChar, contextBoundSettingsStore)
				: null;

			return Enhance(context, solution, contextBoundSettingsStore);
		}
开发者ID:ShaunTGO,项目名称:ReSharper.EnhancedTooltip,代码行数:9,代码来源:EnhancedParameterInfoContextFactory.cs


示例17: InspectionsProcess

    public InspectionsProcess(IDaemonProcess process, IContextBoundSettingsStore settings)
      : base(process, settings)
    {
      process.SourceFile.PrimaryPsiLanguage.Is<PsiLanguage>();
      process.GetStageProcess<PsiFileIndexProcess>();

      myDeclarations = new Dictionary<string, List<IDeclaration>>();
      VisitFile(process.SourceFile.GetPsiFile<PsiLanguage>(new DocumentRange(process.SourceFile.Document, 0)) as IPsiFile);
    }
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:9,代码来源:InspectionsProcess.cs


示例18: CreateProcess

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

            return new[]
               {
                 new MockMetricsDaemonStageProcess(process, settings.GetValue((MockMetricsSettings s) => s.ArrangeAmount))
               };
        }
开发者ID:KozhevnikovDmitry,项目名称:MockMetrics,代码行数:10,代码来源:MockMetricsDaemonStage.cs


示例19: CreateProcess

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

            return new[]
               {
                 new FakeDaemonStageProcess(process)
               };
        }
开发者ID:KozhevnikovDmitry,项目名称:MockMetrics,代码行数:10,代码来源:FakeDaemonStage.cs


示例20: CreateProcess

        public override IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
        {
            if (!IsSupported(process.SourceFile))
                return null;

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

            return new ContainerRegistrationAnalysisStageProcess(process, settings, typeUsageManager, solutionAnalyzer);
        }
开发者ID:renana,项目名称:AgentMulder,代码行数:10,代码来源:ContainerRegistrationAnalysisStage.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IContextExpression类代码示例发布时间:2022-05-24
下一篇:
C# IContext类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap