예제 #1
0
        public SearchContext(string searchString, IPatternMatcherFactory patternMatcherFactory)
        {
            SearchString = searchString ?? String.Empty;

            if (SearchString.Length > 0)
            {
                _patternMatcher = patternMatcherFactory.CreatePatternMatcher(
                    searchString,
                    new PatternMatcherCreationOptions(
                        cultureInfo: CultureInfo.CurrentCulture,
                        flags: PatternMatcherCreationFlags.IncludeMatchedSpans));
            }
        }
예제 #2
0
    public PatternTextFilter(string pattern, IPatternMatcherFactory factory)
    {
        if (factory is null)
        {
            throw new ArgumentNullException(nameof(factory));
        }

        _matcher = factory.CreatePatternMatcher(
            pattern,
            new PatternMatcherCreationOptions(
                CultureInfo.CurrentCulture,
                PatternMatcherCreationFlags.AllowSimpleSubstringMatching | PatternMatcherCreationFlags.IncludeMatchedSpans
                )
            );
    }
예제 #3
0
 public WorkflowCommands(
     IJsonHttpClientFactory clientFactory,
     ITemplateEngineFactory templateEngineFactory,
     IYamlSerializers serializers,
     IJmesPathQuery jmesPathQuery,
     IPatternMatcherFactory patternMatcherFactory,
     ISecretTracker secretTracker,
     IBlueprintManager blueprintManager,
     IConsole console)
 {
     _clientFactory         = clientFactory;
     _templateEngineFactory = templateEngineFactory;
     _serializers           = serializers;
     _jmesPathQuery         = jmesPathQuery;
     _patternMatcherFactory = patternMatcherFactory;
     _secretTracker         = secretTracker;
     _blueprintManager      = blueprintManager;
     _console = console;
 }
예제 #4
0
 public WorkflowCommands(
     IWorkflowLoader workflowLoader,
     IWorkflowEngine workflowEngine,
     IValuesEngine valuesEngine,
     ITemplateEngineFactory templateEngineFactory,
     IYamlSerializers serializers,
     IPatternMatcherFactory patternMatcherFactory,
     ISecretTracker secretTracker,
     IBlueprintManager blueprintManager,
     IConsole console)
 {
     _workflowLoader        = workflowLoader;
     _workflowEngine        = workflowEngine;
     _valuesEngine          = valuesEngine;
     _templateEngineFactory = templateEngineFactory;
     _serializers           = serializers;
     _patternMatcherFactory = patternMatcherFactory;
     _secretTracker         = secretTracker;
     _blueprintManager      = blueprintManager;
     _console = console;
 }
예제 #5
0
 internal DefaultCompletionItemManager(IPatternMatcherFactory patternMatcherFactory)
 {
     _patternMatcherFactory = patternMatcherFactory;
 }
예제 #6
0
 public SearchContextFactory(IPatternMatcherFactory patternMatcherFactory)
 {
     _patternMatcherFactory = patternMatcherFactory;
 }
예제 #7
0
 public ItemManagerProvider(IPatternMatcherFactory patternMatcherFactory, IDocumentFactory documentFactory)
 {
     _instance = new ItemManager(patternMatcherFactory, documentFactory);
 }
예제 #8
0
 public ItemManager(IPatternMatcherFactory patternMatcherFactory, IDocumentFactory documentFactory)
 {
     _patternMatcherFactory = patternMatcherFactory;
     _documentFactory       = documentFactory;
 }