Akka.Cluster.Utility.ClusterActorDiscovery.UnwatchActor C# (CSharp) Метод

UnwatchActor() приватный Метод

private UnwatchActor ( IActorRef actor, int channel ) : void
actor IActorRef
channel int
Результат void
        private void UnwatchActor(IActorRef actor, int channel)
        {
            int[] counts;
            if (_actorWatchCountMap.TryGetValue(actor, out counts) == false)
                return;

            counts[channel] -= 1;
            if (counts.Sum() > 0)
                return;

            _actorWatchCountMap.Remove(actor);
            Context.Unwatch(actor);
        }
    }