public CGetClient() : base() { LogID = "C-Get SCU"; CallingAE = "GET_SCU"; CalledAE = "GET_SCP"; _getSopClass = DicomUID.StudyRootQueryRetrieveInformationModelGET; _getQueries = new Queue <CGetQuery>(); _current = null; }
private void PerformQueryOrRelease() { if (_getQueries.Count > 0) { byte pcid = Associate.FindAbstractSyntax(GetSopClassUID); if (Associate.GetPresentationContextResult(pcid) == DcmPresContextResult.Accept) { _current = _getQueries.Dequeue(); SendCGetRequest(pcid, 1, Priority, _current.ToDataset()); } else { Log.Info("{0} -> Presentation context rejected: {1}", LogID, Associate.GetPresentationContextResult(pcid)); SendReleaseRequest(); } } else { SendReleaseRequest(); } }
public void AddQuery(CGetQuery query) { _getQueries.Enqueue(query); }