public static async Task <StreamParser> Create( IPositionedMessagesReader owner, CreateParserParams p, TextStreamPositioningParams textStreamPositioningParams, IGlobalSettingsAccessor globalSettings, StrategiesCache strategiesCache) { var parser = new StreamParser(owner, p, textStreamPositioningParams, globalSettings, strategiesCache); await parser.Strategy.ParserCreated(parser.InitialParams); return(parser); }
public Presenter( IAutoUpdater model, IGlobalSettingsAccessor settingsAccessor, IView view) { this.model = model; this.view = view; view.SetPresenter(this); UpdateAutomaticUpdatesView(); model.Changed += (s, e) => UpdateAutomaticUpdatesView(); }
private StreamParser( IPositionedMessagesReader owner, CreateParserParams p, TextStreamPositioningParams textStreamPositioningParams, IGlobalSettingsAccessor globalSettings, StrategiesCache strategiesCache ) { p.EnsureRangeIsSet(owner); this.InitialParams = p; this.isSequentialReadingParser = (p.Flags & MessagesParserFlag.HintParserWillBeUsedForMassiveSequentialReading) != 0; this.multithreadingDisabled = (p.Flags & MessagesParserFlag.DisableMultithreading) != 0 || globalSettings.MultithreadedParsingDisabled; CreateParsingStrategy(p, textStreamPositioningParams, strategiesCache, out this.Strategy); }
public long CalcMaxActiveRangeSize(IGlobalSettingsAccessor settings) { throw new NotImplementedException(); }
public long CalcMaxActiveRangeSize(IGlobalSettingsAccessor settings) { CheckDisposed(); return(0); }