Example #1
0
        /// <summary>
        /// Internal function used for filtering endpoints that need to be pruned due to non-recovery past their deadlines
        /// </summary>
        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);
        }