public void OnReceiveResponseMessage(DicomClient client, ClientAssociationParameters association, byte presentationID, DicomMessage message) { client.SendReleaseRequest(); Assert.AreEqual(message.Status.Code, DicomStatuses.Success.Code, "Incorrect DICOM status returned"); }
public void OnReceiveAssociateAccept(DicomClient client, ClientAssociationParameters association) { Logger.LogInfo("Association Accepted:\r\n{0}", association.ToString()); _fileListIndex = 0; bool ok = SendCStore(client, association); while (ok == false) { _fileListIndex++; if (_fileListIndex >= _fileList.Count) { Logger.LogInfo("Completed sending C-STORE-RQ messages, releasing association."); client.SendReleaseRequest(); return; } ok = SendCStore(client, association); } }
public void OnReceiveResponseMessage(DicomClient client, ClientAssociationParameters association, byte presentationID, DicomMessage message) { if (message.Status.Status != DicomState.Success) { Logger.LogError("Failure status received in sending C-STORE: {0}", message.Status.Description); } bool ok = false; while (ok == false) { _fileListIndex++; if (_fileListIndex >= _fileList.Count) { Logger.LogInfo("Completed sending C-STORE-RQ messages, releasing association."); client.SendReleaseRequest(); return; } ok = SendCStore(client, association); } }
public void OnReceiveResponseMessage(DicomClient client, ClientAssociationParameters association, byte presentationID, DicomMessage message) { if (message.Status.Status != DicomState.Success) { Logger.LogError("Failure status received in sending verification: {0}", message.Status.Description); _verificationResult = VerificationResult.Failed; } else if (_verificationResult == VerificationResult.Canceled) { Logger.LogInfo("Verification was canceled"); } else { Logger.LogInfo("Success status received in sending verification!"); _verificationResult = VerificationResult.Success; } client.SendReleaseRequest(); ProgressEvent.Set(); }