public void List()
 {
     if (ProcessStatus.Equals(AkeneoProductIndexerStatuses.ListingError))
     {
         _l.error("Fatal error during indexing Akeneo categories, you can find more information in application error logs");
         return;
     }
     if (ProcessStatus.Equals(AkeneoProductIndexerStatuses.ListingStarting) ||
         ProcessStatus.Equals(AkeneoProductIndexerStatuses.ListingInProgress) ||
         ProcessStatus.Equals(AkeneoProductIndexerStatuses.ListingFinished))
     {
         _l.warn("Cancel - process already started");
     }
     else
     {
         ProcessStatus = AkeneoProductIndexerStatuses.ListingStarting;
         new Thread(() => {
             ListenerThread($"{Settings.BaseAkeneoUrl}{Settings.AkeneoCategoryListUrl}?limit=100");
         }).Start();
     }
 }
        public void List()
        {
            if (ProcessStatus.Equals(AkeneoProductIndexerStatuses.ListingError))
            {
                throw new Exception("Fatal error during indexing Akeneo products, you can find more information in application error logs");
            }

            if (ProcessStatus.Equals(AkeneoProductIndexerStatuses.ListingStarting) ||
                ProcessStatus.Equals(AkeneoProductIndexerStatuses.ListingInProgress) ||
                ProcessStatus.Equals(AkeneoProductIndexerStatuses.ListingFinished))
            {
                _logger.warn("Cancel - process already started");
            }
            else
            {
                ProcessStatus = (int)AkeneoProductIndexerStatuses.ListingStarting;
                var Thread = new Thread(() =>
                {
                    ListenerThread($"{Settings.BaseAkeneoUrl}{Settings.AkeneoProductCreateUrl}?limit=100");
                });
                Thread.Start();
            }
        }