From 51567d50da47b62f38f85d348596617bee4d5391 Mon Sep 17 00:00:00 2001 From: GokaPek Date: Wed, 8 May 2024 09:47:16 +0400 Subject: [PATCH] final --- .../BusinessLogic/WorkModeling.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LawFirm/AbstractLawFirmBusinessLogic/BusinessLogic/WorkModeling.cs b/LawFirm/AbstractLawFirmBusinessLogic/BusinessLogic/WorkModeling.cs index f3bdb8f..4f9da9c 100644 --- a/LawFirm/AbstractLawFirmBusinessLogic/BusinessLogic/WorkModeling.cs +++ b/LawFirm/AbstractLawFirmBusinessLogic/BusinessLogic/WorkModeling.cs @@ -76,6 +76,8 @@ namespace AbstractLawFirmBusinessLogic.BusinessLogic { Id = order.Id }); + // отдыхаем + Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); } // кто-то мог уже перехватить заказ, игнорируем ошибку catch (InvalidOperationException ex) @@ -88,8 +90,7 @@ namespace AbstractLawFirmBusinessLogic.BusinessLogic _logger.LogError(ex, "Error while do work"); throw; } - // отдыхаем - Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); + } }); }