/// <summary> /// starts the DICOM scan /// </summary> /// <param name="directory">top-level directory to be scanned</param> public static void StartScan(string directory) { var scanManager = new DicomScanManagerClient(); using (OperationContextScope contextScope = new OperationContextScope(scanManager.InnerChannel)) { var methodId = Guid.NewGuid(); DicomLoaderManagerHelper.SetupResponseHeader(methodId); scanManager.ScanDirectory(directory, false); } scanManager.Close(); }
/// <summary> /// starts the DICOM scan /// </summary> /// <param name="directory">top-level directory to be scanned</param> public static void StartScan(string directory) { var scanManager = new DicomScanManagerClient(); using (OperationContextScope contextScope = new OperationContextScope(scanManager.InnerChannel)) { var methodId = Guid.Empty; // Guid.NewGuid(); #if USE_ENDPOINT _endpointInstance.Send <ScanDirectory>(); #else scanManager.ScanDirectory(directory, false); #endif } scanManager.Close(); }