Exemplo n.º 1
0
 private void UpdateStatusAsync(Guid orderId)
 {
     new TaskFactory().StartNew(() =>
     {
         //We have to wait for the order to be completed.
         Thread.Sleep(750);
         _updateOrderStatusJob.CheckStatus(orderId);
     });
 }
Exemplo n.º 2
0
        public void UpdateOrderStatusAsync(Guid orderId)
        {
            _logger.LogMessage(string.Format("Starting status updater for order {0}", orderId));

            new TaskFactory().StartNew(() => _updateOrderStatusJob.CheckStatus(orderId));
        }