diff --git a/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogic/WorkModeling.cs b/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogic/WorkModeling.cs index 2e4ae0f..41b24d2 100644 --- a/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogic/WorkModeling.cs +++ b/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogic/WorkModeling.cs @@ -70,6 +70,8 @@ namespace PlumbingRepairBusinessLogic.BusinessLogic { Id = order.Id }); + // отдыхаем + Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); } // кто-то мог уже перехватить заказ, игнорируем ошибку catch (InvalidOperationException ex) @@ -82,8 +84,6 @@ namespace PlumbingRepairBusinessLogic.BusinessLogic _logger.LogError(ex, "Error while do work"); throw; } - // отдыхаем - Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); } }); }