var client = new DicomClient();
var pcs = DicomPresentationContext.GetScpRolePresentationContextsFromStorageUids(
DicomStorageCategory.Image,
DicomTransferSyntax.ExplicitVRLittleEndian,
DicomTransferSyntax.ImplicitVRLittleEndian,
DicomTransferSyntax.ImplicitVRBigEndian);
client.AdditionalPresentationContexts.AddRange(pcs);
DicomDataset dataset = null;
client.OnCStoreRequest = request =>
{
dataset = request.Dataset;
return new DicomCStoreResponse(request, DicomStatus.Success);
};
var get = new DicomCMoveRequest(QRServer,
StudyId,
SeriesUd);
var handle = new ManualResetEventSlim();
get.OnResponseReceived = (request, response) =>
{
handle.Set();
};
client.AddRequest(get);
client.Send(ipAddress, 104, false, AEClient, QRServer);
handle.Wait();
Thread.Sleep(10000);
In the above code snippet if AEClient & QRServer are same /same AETitle ,CMoveResponse succeded but not getting any CStoreRequest
If AEClient & QRServer are different , getting error like Move destination Unknown