예제 #1
0
		internal override void PostResponse(DicomService service, DicomResponse response) {
			try {
				if (OnResponseReceived != null)
					OnResponseReceived(this, (DicomNActionResponse)response);
			} catch {
			}
		}
예제 #2
0
 protected internal override void PostResponse(DicomService service, DicomResponse response)
 {
     try
     {
         if (OnResponseReceived != null) OnResponseReceived(this, (DicomNEventReportResponse)response);
     }
     catch
     {
     }
 }
예제 #3
0
 /// <summary>
 /// Invoke the event handler upon receiving a N-EVENTREPORT response.
 /// </summary>
 /// <param name="service">Associated DICOM service.</param>
 /// <param name="response">N-EVENTREPORT response.</param>
 protected internal override void PostResponse(DicomService service, DicomResponse response)
 {
     try
     {
         if (OnResponseReceived != null)
         {
             OnResponseReceived(this, (DicomNEventReportResponse)response);
         }
     }
     catch
     {
     }
 }
예제 #4
0
            public PDataTFStream(DicomService service, byte pcid, uint max)
            {
                _service = service;
                _command = true;
                _pcid    = pcid;
                _pduMax  = Math.Min(max, Int32.MaxValue);
                _max     = (_pduMax == 0) ? _service.Options.MaxCommandBuffer : Math.Min(_pduMax, _service.Options.MaxCommandBuffer);

                _pdu = new PDataTF();

                // Max PDU Size - Current Size - Size of PDV header
                _bytes = new byte[_max - CurrentPduSize() - 6];
            }
예제 #5
0
 internal override void PostResponse(DicomService service, DicomResponse response)
 {
     try
     {
         if (OnResponseReceived != null)
         {
             OnResponseReceived(this, (DicomCFindResponse)response);
         }
     }
     catch
     {
     }
 }
예제 #6
0
            public PDataTFStream(DicomService service, byte pcid, uint max)
            {
                _service = service;
                _command = true;
                _pcid = pcid;
                _pduMax = Math.Min(max, Int32.MaxValue);
                _max = (_pduMax == 0)
                           ? _service.Options.MaxCommandBuffer
                           : Math.Min(_pduMax, _service.Options.MaxCommandBuffer);

                _pdu = new PDataTF();

                // Max PDU Size - Current Size - Size of PDV header
                _bytes = new byte[_max - CurrentPduSize() - 6];
            }
예제 #7
0
 public RunningDicomService(DicomService service, Task task)
 {
     Service = service ?? throw new ArgumentNullException(nameof(service));
     Task    = task ?? throw new ArgumentNullException(nameof(task));
 }
예제 #8
0
 /// <summary>
 /// Operation to perform after response has been made.
 /// </summary>
 /// <param name="service">Active DICOM service.</param>
 /// <param name="response">Response to be post-processed.</param>
 protected internal abstract void PostResponse(DicomService service, DicomResponse response);
예제 #9
0
 internal abstract void PostResponse(DicomService service, DicomResponse response);