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

SendNActionRequest() public method

Sends an N-Action request.
public SendNActionRequest ( byte presentationID, ushort messageID, DicomMessage message ) : void
presentationID byte The presentation ID to send the request message on.
messageID ushort The message ID.
message DicomMessage The message.
return void
		public void SendNActionRequest(byte presentationID, ushort messageID, DicomMessage message)
		{
			message.CommandSet[DicomTags.MessageId].SetUInt16(0, messageID);
			message.CommandSet[DicomTags.CommandField].SetUInt16(0, (ushort)DicomCommandField.NActionRequest);

			if (message.DataSet == null || message.DataSet.IsEmpty())
			message.CommandSet[DicomTags.DataSetType].SetUInt16(0, 0x101);
			else
				message.CommandSet[DicomTags.DataSetType].SetUInt16(0, 0x102);

			SendDimse(presentationID, message.CommandSet, message.DataSet);
		}