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;
}
}