From 994d876b42402678321c471cac2a9338d38365c7 Mon Sep 17 00:00:00 2001 From: "ityurner02@mail.ru" Date: Tue, 18 Apr 2023 12:21:58 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D0=BE=D1=81=20?= =?UTF-8?q?=D1=81=D0=BB=D0=B8=D0=BF=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlumbingRepairBusinessLogic/BusinessLogic/WorkModeling.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } }); }