diff --git a/AsbCloudApp/Data/Progress/ProgressDto.cs b/AsbCloudApp/Data/Progress/ProgressDto.cs
index 601268ca..3ad2c50a 100644
--- a/AsbCloudApp/Data/Progress/ProgressDto.cs
+++ b/AsbCloudApp/Data/Progress/ProgressDto.cs
@@ -1,19 +1,18 @@
-namespace AsbCloudApp.Data.Progress
+namespace AsbCloudApp.Data.Progress;
+
+///
+/// DTO прогресса
+///
+public class ProgressDto
{
///
- /// DTO прогресса
+ /// прогресс 0 - 100%
///
- public class ProgressDto
- {
- ///
- /// прогресс 0 - 100%
- ///
- public float Progress { get; set; }
+ public float Progress { get; set; }
- ///
- /// название текущей операции генерации
- ///
- public string? Operation { get; set; }
+ ///
+ /// название текущей операции генерации
+ ///
+ public string? Operation { get; set; }
- }
}
diff --git a/AsbCloudApp/Data/Progress/ProgressExceptionDto.cs b/AsbCloudApp/Data/Progress/ProgressExceptionDto.cs
new file mode 100644
index 00000000..cb264178
--- /dev/null
+++ b/AsbCloudApp/Data/Progress/ProgressExceptionDto.cs
@@ -0,0 +1,29 @@
+using System;
+
+namespace AsbCloudApp.Data.Progress;
+
+///
+/// DTO прогресса с ошибкой
+///
+public class ProgressExceptionDto
+{
+ ///
+ /// прогресс 0 - 100%
+ ///
+ public float Progress { get; set; }
+
+ ///
+ /// название текущей операции генерации
+ ///
+ public string? Operation { get; set; }
+
+ ///
+ /// Отображаемый текст ошибки
+ ///
+ public string Message { get; set; } = null!;
+
+ ///
+ /// Инфо об исключении
+ ///
+ public Exception Exception { get; set; } = null!;
+}
\ No newline at end of file
diff --git a/AsbCloudApp/Data/Progress/ReportProgressDto.cs b/AsbCloudApp/Data/Progress/ReportProgressDto.cs
index 00db12a8..b14166e9 100644
--- a/AsbCloudApp/Data/Progress/ReportProgressDto.cs
+++ b/AsbCloudApp/Data/Progress/ReportProgressDto.cs
@@ -1,13 +1,12 @@
-namespace AsbCloudApp.Data.Progress
+namespace AsbCloudApp.Data.Progress;
+
+///
+/// DTO завершенного прогресса генерации рапорта-диаграммы
+///
+public class ReportProgressFinalDto : ReportProgressDto
{
///
- /// DTO завершенного прогресса генерации рапорта-диаграммы
+ /// файл
///
- public class ReportProgressFinalDto : ReportProgressDto
- {
- ///
- /// файл
- ///
- public FileInfoDto file { get; set; }
- }
+ public FileInfoDto file { get; set; }
}
diff --git a/AsbCloudApp/Data/Progress/ReportProgressFinalDto.cs b/AsbCloudApp/Data/Progress/ReportProgressFinalDto.cs
index 29956546..b5ce965a 100644
--- a/AsbCloudApp/Data/Progress/ReportProgressFinalDto.cs
+++ b/AsbCloudApp/Data/Progress/ReportProgressFinalDto.cs
@@ -1,18 +1,17 @@
-namespace AsbCloudApp.Data.Progress
+namespace AsbCloudApp.Data.Progress;
+
+///
+/// DTO прогресса генерации рапорта-диаграммы
+///
+public class ReportProgressDto : ProgressDto
{
///
- /// DTO прогресса генерации рапорта-диаграммы
+ /// номер текущей страницы
///
- public class ReportProgressDto : ProgressDto
- {
- ///
- /// номер текущей страницы
- ///
- public int CurrentPage { get; set; }
+ public int CurrentPage { get; set; }
- ///
- /// предполагаемое суммарное количество страниц
- ///
- public int TotalPages { get; set; }
- }
+ ///
+ /// предполагаемое суммарное количество страниц
+ ///
+ public int TotalPages { get; set; }
}
diff --git a/AsbCloudInfrastructure/Background/WorkToCreateReport.cs b/AsbCloudInfrastructure/Background/WorkToCreateReport.cs
index 3381f033..f07e7f85 100644
--- a/AsbCloudInfrastructure/Background/WorkToCreateReport.cs
+++ b/AsbCloudInfrastructure/Background/WorkToCreateReport.cs
@@ -6,38 +6,36 @@ using System;
using System.Threading;
using System.Threading.Tasks;
-namespace AsbCloudInfrastructure.Background
+namespace AsbCloudInfrastructure.Background;
+
+///
+/// Класс для создания отчета
+///
+internal class WorkToCreateReport : Work
{
- ///
- /// Класс для создания отчета
- ///
- internal class WorkToCreateReport : Work
+ private readonly int idWell;
+ private readonly int idUser;
+ private readonly ReportParametersRequest request;
+ private readonly Action