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