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));
            }
        }
Example #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
                )
            );
    }
Example #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;
 }
Example #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;
 }
Example #5
0
 internal DefaultCompletionItemManager(IPatternMatcherFactory patternMatcherFactory)
 {
     _patternMatcherFactory = patternMatcherFactory;
 }
Example #6
0
 public SearchContextFactory(IPatternMatcherFactory patternMatcherFactory)
 {
     _patternMatcherFactory = patternMatcherFactory;
 }
 public ItemManagerProvider(IPatternMatcherFactory patternMatcherFactory, IDocumentFactory documentFactory)
 {
     _instance = new ItemManager(patternMatcherFactory, documentFactory);
 }
Example #8
0
 public ItemManager(IPatternMatcherFactory patternMatcherFactory, IDocumentFactory documentFactory)
 {
     _patternMatcherFactory = patternMatcherFactory;
     _documentFactory       = documentFactory;
 }