diff --git a/AsbCloudApp/Services/IBackgroundWorkerService.cs b/AsbCloudApp/Services/IBackgroundWorkerService.cs
new file mode 100644
index 00000000..d1831355
--- /dev/null
+++ b/AsbCloudApp/Services/IBackgroundWorkerService.cs
@@ -0,0 +1,23 @@
+using AsbCloudApp.Data;
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace AsbCloudApp.Services
+{
+ public interface IBackgroundWorkerService
+ {
+ bool Contains(string id);
+
+ ///
+ /// Добавляет в очередь задач новую задачу
+ ///
+ /// 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/IDrillingProgramService.cs b/AsbCloudApp/Services/IDrillingProgramService.cs
index ec872a70..71a81d64 100644
--- a/AsbCloudApp/Services/IDrillingProgramService.cs
+++ b/AsbCloudApp/Services/IDrillingProgramService.cs
@@ -13,10 +13,11 @@ namespace AsbCloudApp.Services
CancellationToken token = default);
Task AddOrReplaceFileMarkAsync(FileMarkDto fileMarkDto, int idUser, CancellationToken token);
Task MarkAsDeletedFileMarkAsync(int idFileMark, CancellationToken token);
- Task AddPartAsync(int idWell, int idFileCategory, CancellationToken token = default);
- Task RemovePartAsync(int idWell, int idFileCategory, CancellationToken token = default);
+ Task AddPartsAsync(int idWell, IEnumerable idFileCategories, CancellationToken token = default);
+ Task RemovePartsAsync(int idWell, IEnumerable idFileCategories, CancellationToken token = default);
Task AddUserAsync(int idUser, int idPart, int idUserRole, CancellationToken token = default);
Task RemoveUserAsync(int idUser, int idPart, int idUserRole, CancellationToken token = default);
Task AddFile(int idPart, int idUser, string fileFullName, Stream fileStream, CancellationToken token = default);
+ Task> GetAvailableUsers(int idWell, CancellationToken token = default);
}
}
\ No newline at end of file
diff --git a/AsbCloudApp/Services/IReportService.cs b/AsbCloudApp/Services/IReportService.cs
index b900e877..0261e986 100644
--- a/AsbCloudApp/Services/IReportService.cs
+++ b/AsbCloudApp/Services/IReportService.cs
@@ -9,9 +9,9 @@ namespace AsbCloudApp.Services
public interface IReportService
{
int ReportCategoryId { get; }
- int CreateReport(int idWell, int idUser, int stepSeconds,
+ string CreateReport(int idWell, int idUser, int stepSeconds,
int format, DateTime begin, DateTime end,
- Action