void SetTimer() { // Note, called under _stateLock var infiniteTimespan = Timeout.InfiniteTimeSpan; #if NO_TIMER _timer.Start(_connectionSchedule.NextInterval); #else _timer.Change(_connectionSchedule.NextInterval, infiniteTimespan); #endif }
void SetTimer() { // Note, called under _stateLock var infiniteTimespan = Timeout.InfiniteTimeSpan; #if NO_TIMER _timer.Start(_connectionSchedule.NextInterval); #else _timer.Change(_connectionSchedule.NextInterval, infiniteTimespan); #endif }