Akka.Remote.EndpointRegistry.PruneFilterFunction C# (CSharp) Метод

PruneFilterFunction() приватный статический Метод

Internal function used for filtering endpoints that need to be pruned due to non-recovery past their deadlines
private static PruneFilterFunction ( EndpointManager policy ) : bool
policy EndpointManager
Результат bool
        private static bool PruneFilterFunction(EndpointManager.EndpointPolicy policy)
        {
            var rValue = true;

            policy.Match()
                .With<EndpointManager.Gated>(g => rValue = g.TimeOfRelease.HasTimeLeft)
                .With<EndpointManager.Quarantined>(q => rValue = q.Deadline.HasTimeLeft)
                .Default(msg => rValue = true);

            return rValue;
        }
    }