TimeSpanExtensions
Provides extension methods for TimeSpan.
Returns the specified timeSpan as a valid timeout in milliseconds.
Ensures that the specified timeSpan represents a valid timeout in milliseconds.