Hello
I am facing below issue when i am trying to Prepare Orders using the Multi Threading
Sample Code :
           var availableTasks = Environment.ProcessorCount - 1;
           List<List<KCAPIOrder>> objliUsrMappingBatches = SplitIntoChunks(orders, ((orders.Count / availableTasks) + 1));
           Task;] tasks = new TaskÂavailableTasks];
         Â
           for (int x = 0; x < availableTasks ; x++)
           {
               int index = x;
               tasks/index] = new Task(() =>
               {
                   foreach (KCAPIOrder order in objliUsrMappingBatches/index])
                   {
                       GetOrderDetails(store, request, order);
                   }
               }, cancellationToken);
           }        Â
           tasks.StartAndWaitAll(cancellationToken, logger);
Â
Can anyone Help on this