예제 #1
0
        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;
            }
        }
예제 #2
0
        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;
            }
        }