protected void ResetDimseTimeout()
{
lock (_syncLock)
{
//TODO (Time Review): use Environment.TickCount. It probably won't have much of
//a performance impact here, but it is pretty inefficient when called in a tight loop.
_dimseTimeout = _assoc != null
? DateTime.Now.AddMilliseconds(_assoc.ReadTimeout)
: DateTime.Now.AddSeconds(Timeout);
}
}