files: added 'scope' attribute for several classes

This commit is contained in:
Alexey Bannov 2021-03-22 19:10:14 +03:00
parent c750a55e36
commit 11e3738090

View File

@ -28,8 +28,9 @@ using System;
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Web; using System.Web;
using ASC.Common;
using ASC.Common.Logging; using ASC.Common.Logging;
using ASC.Common.Threading; using ASC.Common.Threading;
using ASC.Core; using ASC.Core;
@ -250,7 +251,7 @@ namespace ASC.Web.Files.Services.DocumentService
TaskInfo.SetProperty("exception", Exception); TaskInfo.SetProperty("exception", Exception);
} }
} }
[Scope]
public class DocbuilderReportsUtility public class DocbuilderReportsUtility
{ {
private readonly DistributedTaskQueue tasks; private readonly DistributedTaskQueue tasks;
@ -321,7 +322,8 @@ namespace ASC.Web.Files.Services.DocumentService
return $"{tenantId}_{userId}_{(int)origin}"; return $"{tenantId}_{userId}_{(int)origin}";
} }
} }
[Scope]
public class DocbuilderReportsUtilityHelper public class DocbuilderReportsUtilityHelper
{ {
public DocbuilderReportsUtility DocbuilderReportsUtility { get; } public DocbuilderReportsUtility DocbuilderReportsUtility { get; }