Ejemplo n.º 1
0
        public void ReceiveSync(long heartbeatId, string instanceId)
        {
            _stitchLastSyncReceived.AddOrUpdate(instanceId, x => heartbeatId, (x, l) => heartbeatId);
            bool returnedToHealth = _stitchHealth.TryUpdate(instanceId, true, false);

            if (returnedToHealth)
            {
                _notifier.NotifyReturnToHealth(instanceId);
            }
        }