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