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);
         }
     }
 }
Beispiel #2
0
    /// <summary>
    /// GetScanCaseList.  This interface function returns list of Cases in the Scan Queue
    ///
    ///	Arguments:
    ///		void
    ///	Exceptions:
    ///		none
    ///	Return:
    ///		Caseid list
    /// </summary>
    public string[] GetScanCaseList()
    {
        try
        {
            string[] caseList;
            caseList = _cargoHostEndPoint.GetScanAreaCases();
            return(caseList);
        }
        catch (Exception e1)
        {
            _logger.LogError("OM - " + e1.Message);
        }

        return(null);
    }