Ejemplo n.º 1
0
 public StitchStateTracker(IStitchHealthNotifier notifier, StitchHealthCalculator calculator)
 {
     _notifier               = notifier;
     _calculator             = calculator;
     _stitchLastSyncReceived = new ConcurrentDictionary <string, long>();
     _stitchHealth           = new ConcurrentDictionary <string, bool>();
 }
Ejemplo n.º 2
0
 public StitchHeartbeatService(IModuleLog log, IHeartbeatSender sender, IStitchHealthNotifier notifier, StitchHealthCalculator calculator)
 {
     _log        = log;
     _sender     = sender;
     _sequence   = new HeartbeatSequence();
     _calculator = calculator;
     _tracker    = new StitchStateTracker(notifier, _calculator);
 }