public CStoreRequest GenerateCStoreRequest(Core.DICOMObject toSend, ushort messageId = 1) { var sel = toSend.GetSelector(); var cStoreReq = new CStoreRequest(); cStoreReq.AffectedSOPClassUID = sel.SOPClassUID.Data; cStoreReq.Priority = 1; cStoreReq.Data = toSend; cStoreReq.MessageID = messageId; cStoreReq.AffectedSOPInstanceUID = sel.SOPInstanceUID.Data; cStoreReq.MoveOrigAETitle = this.ApplicationEntity.AeTitle; cStoreReq.MoveOrigMessageID = messageId; return cStoreReq; }