internal override void PostResponse(DicomService service, DicomResponse response) {
			try {
				if (OnResponseReceived != null)
					OnResponseReceived(this, (DicomNActionResponse)response);
			} catch {
			}
		}
 protected internal override void PostResponse(DicomService service, DicomResponse response)
 {
     try
     {
         if (OnResponseReceived != null) OnResponseReceived(this, (DicomNEventReportResponse)response);
     }
     catch
     {
     }
 }
 /// <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);