Example #1
0
 public void AddRequest(DicomRequest request)
 {
     if (_service != null && _service.IsConnected)
         _service.SendRequest(request);
     else
         _requests.Add(request);
 }
Example #2
0
		public void AddRequest(DicomRequest request) {
			if (_service != null && _service.IsConnected) {
				_service.SendRequest(request);
				if (_service._timer != null)
					_service._timer.Change(Timeout.Infinite, Timeout.Infinite);
			} else
				_requests.Add(request);
		}
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DicomResponse"/> class.
        /// </summary>
        /// <param name="request">
        /// The request initiating the response.
        /// </param>
        /// <param name="status">
        /// Response status.
        /// </param>
        protected DicomResponse(DicomRequest request, DicomStatus status)
        {
            PresentationContext = request.PresentationContext;

            Type = (DicomCommandField)(0x8000 | (int)request.Type);
            SOPClassUID = request.SOPClassUID;
            RequestMessageID = request.MessageID;
            Status = status;
        }
Example #4
0
		public void AddRequest(DicomRequest request) {
			if (_service != null && _service.IsConnected) {
                //zssure:2015-04-14,try to conform whether AddRequest and Send uses the same one client
                LogManager.Default.GetLogger("Dicom.Network").Info("zssure debug at 20150414,the DicomRequest object is {0},DicomServiceUser is{1}", request.GetHashCode(), _service.GetHashCode());
                //zssure:2015-04-14,end
				_service.SendRequest(request);
				if (_service._timer != null)
					_service._timer.Change(Timeout.Infinite, Timeout.Infinite);
			} else
				_requests.Add(request);
		}
Example #5
0
 /// <summary>
 /// Send request from service.
 /// </summary>
 /// <param name="request">Request to send.</param>
 public virtual void SendRequest(DicomRequest request)
 {
     SendMessage(request);
 }
Example #6
0
 /// <summary>
 /// Add DICOM service request.
 /// </summary>
 /// <param name="request">DICOM request.</param>
 public void AddRequest(DicomRequest request)
 {
     if (this.service != null && this.service.IsConnected)
     {
         this.service.SendRequest(request);
     }
     else this.requests.Add(request);
 }
Example #7
0
 /// <summary>
 /// Add DICOM service request.
 /// </summary>
 /// <param name="request">DICOM request.</param>
 public void AddRequest(DicomRequest request)
 {
     lock (this.locker)
     {
         this.requests.Add(request);
     }
 }