22 references to InfiniteTimeout
System (22)
sys\system\io\ports\SerialPort.cs (9)
55
private const int defaultReadTimeout = SerialPort.
InfiniteTimeout
;
56
private const int defaultWriteTimeout = SerialPort.
InfiniteTimeout
;
448
DefaultValue(SerialPort.
InfiniteTimeout
),
459
if (value < 0 && value != SerialPort.
InfiniteTimeout
)
570
if (value <= 0 && value != SerialPort.
InfiniteTimeout
)
965
if (timeout == SerialPort.
InfiniteTimeout
)
966
nextByte = internalSerialStream.ReadByte(
InfiniteTimeout
);
1064
} while (timeout == SerialPort.
InfiniteTimeout
|| (timeout - GetElapsedTime(Environment.TickCount, startTicks) > 0));
1257
if(readTimeout ==
InfiniteTimeout
) {
sys\system\io\ports\SerialStream.cs (13)
418
if (constant == infiniteTimeoutConst) return SerialPort.
InfiniteTimeout
;
423
if (value < 0 && value != SerialPort.
InfiniteTimeout
)
436
} else if (value == SerialPort.
InfiniteTimeout
) {
545
return (timeout == 0) ? SerialPort.
InfiniteTimeout
: timeout;
549
if (value <= 0 && value != SerialPort.
InfiniteTimeout
)
554
commTimeouts.WriteTotalTimeoutConstant = ((value == SerialPort.
InfiniteTimeout
) ? 0 : value);
735
} else if (readTimeout == SerialPort.
InfiniteTimeout
) {
748
commTimeouts.WriteTotalTimeoutConstant = ((writeTimeout == SerialPort.
InfiniteTimeout
) ? 0 : writeTimeout);
882
ReadTimeout = SerialPort.
InfiniteTimeout
;
916
WriteTimeout = SerialPort.
InfiniteTimeout
;
989
if ((afsar._numBytes == 0) && (ReadTimeout == SerialPort.
InfiniteTimeout
) && (afsar._errorCode == 0))
1093
Debug.Assert(timeout == SerialPort.
InfiniteTimeout
|| timeout >= 0, "Serial Stream Read - called with timeout " + timeout);
1181
Debug.Assert(timeout == SerialPort.
InfiniteTimeout
|| timeout >= 0, "Serial Stream Write - write timeout is " + timeout);