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

SendCMoveResponse() public method

Method to send a DICOM C-MOVE-RSP message.
public SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status, string errorComment ) : void
presentationID byte
messageID ushort
message DicomMessage
status ClearCanvas.Dicom.Network.DicomStatus
errorComment string An extended textual error comment. The comment will be truncated to 64 characters.
return void
        public void SendCMoveResponse(byte presentationID, ushort messageID, DicomMessage message, DicomStatus status, string errorComment)
        {
            DicomUid affectedClass = _assoc.GetAbstractSyntax(presentationID);
            message.CommandField = DicomCommandField.CMoveResponse;
            message.Status = status;
            message.MessageIdBeingRespondedTo = messageID;
            message.AffectedSopClassUid = affectedClass.UID;
            message.DataSetType = message.DataSet.IsEmpty() ? (ushort)0x0101 : (ushort)0x0202;
            if (!string.IsNullOrEmpty(errorComment))
                message.ErrorComment = errorComment.Substring(0, (int)Math.Min(DicomVr.LOvr.MaximumLength, errorComment.Length));

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

Same methods

NetworkBase::SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void
NetworkBase::SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status, ushort numberOfCompletedSubOperations, ushort numberOfRemainingSubOperations, ushort numberOfFailedSubOperations, ushort numberOfWarningSubOperations ) : void
NetworkBase::SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status, ushort numberOfCompletedSubOperations, ushort numberOfRemainingSubOperations, ushort numberOfFailedSubOperations, ushort numberOfWarningSubOperations, string errorComment ) : void