From 8f451e7d7f59a8cf11e0af6e62f13050fa0a1ec6 Mon Sep 17 00:00:00 2001 From: gg12 darfren Date: Sat, 27 Apr 2024 22:42:54 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IceCreamShopBusinessLogic/BusinessLogic/WorkModeling.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/WorkModeling.cs b/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/WorkModeling.cs index 725c67c..3387330 100644 --- a/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/WorkModeling.cs +++ b/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/WorkModeling.cs @@ -79,6 +79,8 @@ namespace IceCreamShopBusinessLogic.BusinessLogic { Id = order.Id }); + // отдыхаем + Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); } // кто-то мог уже перехватить заказ, игнорируем ошибку catch (InvalidOperationException ex) @@ -91,8 +93,6 @@ namespace IceCreamShopBusinessLogic.BusinessLogic _logger.LogError(ex, "Error while do work"); throw; } - // отдыхаем - Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); } }); }