Beispiel #1
0
 protected override void OnStop()
 {
     _recieveRequestTimer.Enabled  = false;
     _recieveResponseTimer.Enabled = false;
     _sendTimer.Enabled            = false;
     _rejectQueue.Dispose();
     _ackQueue.Dispose();
     _errorsQueue.Dispose();
 }
        protected override void DisposeInternal(bool disposing)
        {
            if (Disposed)
            {
                return;
            }

            if (disposing)
            {
                _queue?.Dispose();
                _connection?.Dispose();
                ErrorsQueue?.Dispose();
                (ExceptionHandler as IDisposable)?.Dispose();
            }
            Disposed = true;
        }