I have a method that links a BO Connection.AliveInterval
to a System.Timers.Timer
(.NET 2).
Some connections are managed to be always connected.
Is it OK to set in such a case
if (myConnection.AliveInterval == Connection.TimeInfinite)
{
myTimer.Interval = double.PositiveInfinity;
}
?
Should I expect that the Timer will throw exceptions or rises ever the Elapsed event ?