private static void Store(DicomDataSet ds, List <DicomScp> scps) { try { if (scps.Count > 0) { StoreWorker sw = new StoreWorker(scps, ds); sw.RunWorkerAsync(); } } finally { ds = null; } }
private static void Store(DicomDataSet ds, List <DicomScp> scps, int retries, int retryTimeout) { try { if (scps.Count > 0) { DicomServer server = ServiceLocator.Retrieve <DicomServer>(); StoreWorker sw = new StoreWorker(scps, ds); sw.EnableRetry = true; sw.NumberOfRetries = retries; sw.Timeout = retryTimeout; sw.RunWorkerAsync(); } } finally { ds = null; } }