public ParseState(ISequence <TInput> input, Action <string> logCallback, IMemoryCache cache) { Input = input; _store = new CascadingKeyValueStore(); _logCallback = logCallback; Cache = new MemoryCacheResultsCache(cache); }
public ParseState(ISequence <TInput> input, Action <string> logCallback, IResultsCache?cache) { Input = input; _store = new CascadingKeyValueStore(); _logCallback = logCallback; Cache = cache ?? new NullResultsCache(); }