ClearCanvas.Dicom.Network.NetworkBase.ResetDimseTimeout C# (CSharp) Method

ResetDimseTimeout() protected method

Method called after network activity to reset the time when a DIMSE timeout will occur.
protected ResetDimseTimeout ( ) : void
return void
        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);
            }
        }