Ejemplo n.º 1
0
 public TimeBasedPollerForLineReader(RollingFileReader fileReader, Func <string, bool> processContent)
 {
     _rollingFileReader = new RollingFileTextReader(fileReader);
     _processContent    = processContent;
     _observable        = Observable.Interval(TimeSpan.FromSeconds(10));
     _observable.Subscribe(_ => ElapsedEventHandler());
 }
Ejemplo n.º 2
0
 public TimeBasedPoller(RollingFileReader fileReader, Func <byte[], int, int, bool> processContent)
 {
     _rollingFileReader      = fileReader;
     _processContent         = processContent;
     _observable             = Observable.Interval(TimeSpan.FromSeconds(10));
     _cancelationTokenSource = new CancellationTokenSource();
     _observable.Subscribe(_ => ElapsedEventHandler(), _cancelationTokenSource.Token);
 }
Ejemplo n.º 3
0
 public RollingFileTextReader(RollingFileReader reader)
 {
     _reader = reader;
 }