public void StartCaseManagerScan() { if (_cargoHostEndPoint.IsHostAvailable) { if (!_cargoHostEndPoint.IsScanAreaScanning()) { string[] caseIds = _cargoHostEndPoint.GetScanAreaCases(); string caseId = (caseIds.Length > 0) ? caseId = caseIds[0] : _cargoHostEndPoint.CreateScanAreaCase(); _logger.LogInfo("Case created with Id: " + caseId); _cargoHostEndPoint.ScanAreaStartScan(caseId); } } }