Add support for TimeSpan.MaxValue for configmanger.