Пример #1
0
 public ParseState(ISequence <TInput> input, Action <string> logCallback, IMemoryCache cache)
 {
     Input        = input;
     _store       = new CascadingKeyValueStore();
     _logCallback = logCallback;
     Cache        = new MemoryCacheResultsCache(cache);
 }
Пример #2
0
 public ParseState(ISequence <TInput> input, Action <string> logCallback, IResultsCache?cache)
 {
     Input        = input;
     _store       = new CascadingKeyValueStore();
     _logCallback = logCallback;
     Cache        = cache ?? new NullResultsCache();
 }