/// <summary> /// Used to generate a new Echo Response from an Echo Request /// </summary> /// <param name="req">the request that is being responded to</param> /// <param name="status">the status of the echo</param> /// <param name="presContext">the presentation context with which to write the data</param> public CEchoResponse(CEchoRequest req, Status status) { AffectedSOPClassUID = req.AffectedSOPClassUID; CommandField = (ushort)C.C_ECHO_RP; MessageIDBeingResponsedTo = req.MessageID; DataSetType = _dataSet; Status = (ushort)status; GroupLength = (uint)GroupWriter.WriteGroupBytes(new DICOMObject(Elements.Skip(1).Take(5).ToList()), new DICOMWriteSettings { TransferSyntax = TransferSyntax.IMPLICIT_VR_LITTLE_ENDIAN }, "0000").Length; }
/// <summary> /// Used to generate a new Echo Response from an Echo Request /// </summary> /// <param name="req">the request that is being responded to</param> /// <param name="status">the status of the echo</param> /// <param name="presContext">the presentation context with which to write the data</param> public CEchoResponse(CEchoRequest req, Status status) { AffectedSOPClassUID = req.AffectedSOPClassUID; CommandField = (ushort)C.C_ECHO_RP; MessageIDBeingRespondedTo = req.MessageID; DataSetType = _dataSet; Status = (ushort)status; GroupLength = (uint)GroupWriter.WriteGroupBytes(new DICOMObject(Elements.Skip(1).Take(5).ToList()), new DICOMWriteSettings { TransferSyntax = TransferSyntax.IMPLICIT_VR_LITTLE_ENDIAN }, "0000").Length; }