diff --git a/AsbCloudApp/Services/FileService.cs b/AsbCloudApp/Services/FileService.cs
index 9b7ca156..d361cf38 100644
--- a/AsbCloudApp/Services/FileService.cs
+++ b/AsbCloudApp/Services/FileService.cs
@@ -73,7 +73,7 @@ namespace AsbCloudApp.Services
///
///
///
- public async Task SaveAsync(int idWell, int? idUser, int idCategory,
+ public async Task SaveAsync(int idWell, int? idUser, int idCategory,
string fileFullName, Stream fileStream, CancellationToken token)
{
//save info to db
@@ -93,7 +93,7 @@ namespace AsbCloudApp.Services
string filePath = fileStorageRepository.MakeFilePath(idWell, idCategory, fileFullName, fileId);
await fileStorageRepository.SaveFileAsync(filePath, fileStream, token);
- return await GetOrDefaultAsync(fileId, token);
+ return (await GetOrDefaultAsync(fileId, token))!;
}
///
diff --git a/AsbCloudApp/Services/IBackgroundWorkerService.cs b/AsbCloudApp/Services/IBackgroundWorkerService.cs
deleted file mode 100644
index 2ccc47ab..00000000
--- a/AsbCloudApp/Services/IBackgroundWorkerService.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace AsbCloudApp.Services
-{
- ///
- /// Сервис выстраивает очередь из фоновых задач. Ограничивает количество одновременно выполняющихся задач.
- ///
- public interface IBackgroundWorkerService
- {
- ///
- /// Проверка, есть ли задача в очереди
- ///
- /// идентификатор задачи
- ///
- bool Contains(string id);
-
- ///
- /// Добавляет в очередь задач новую задачу
- ///
- /// идентификатор задачи
- /// делегат
- /// id задачи в очереди
- string Enqueue(string id, Func func);
-
- ///
- /// Добавляет в очередь задач новую задачу
- ///
- ///
- ///
- string Enqueue(Func func);
-
- ///
- /// Добавляет в очередь задач новую задачу
- ///
- /// идентификатор задачи
- ///
- ///
- ///
- string Enqueue(string id, Func func, Func onError);
-
- ///
- /// Пробуем удалить задачу по идентификатору
- ///
- ///
- ///
- bool TryRemove(string id);
- }
-}
\ No newline at end of file
diff --git a/AsbCloudApp/Services/IReportService.cs b/AsbCloudApp/Services/IReportService.cs
index c66861b7..e5e24648 100644
--- a/AsbCloudApp/Services/IReportService.cs
+++ b/AsbCloudApp/Services/IReportService.cs
@@ -6,6 +6,7 @@ using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
+#nullable enable
///
/// Сервис рапортов
///
@@ -16,7 +17,6 @@ namespace AsbCloudApp.Services
///
int ReportCategoryId { get; }
- // TODO: rename this method
///
/// Поставить рапорт в очередь на формирование
///
@@ -28,7 +28,7 @@ namespace AsbCloudApp.Services
///
///
///
- string CreateReport(int idWell, int idUser, int stepSeconds,
+ string EnqueueCreateReportWork(int idWell, int idUser, int stepSeconds,
int format, DateTime begin, DateTime end,
Action