public FetchDirective ShouldFetch(PipelineState currentState) { if (currentState.PendingEventCount < _minimumPendingEvents) { return FetchDirective.FetchNow(Guid.NewGuid(), _batchSize); } return FetchDirective.DoNotFetchYet(); }
public void EvaluateFetchPolicy(PipelineState pipelineState) { if (_activeFetchRequest) { return; } var directive = _fetchPolicy.ShouldFetch(pipelineState); if (directive.ShouldFetch) { StartFetching(directive); } }
public PipelineStateChangedEventArgs(PipelineState state) { _state = state; }