analizators/s3966

This commit is contained in:
Anton Suhorukov 2021-12-28 18:50:54 +03:00
parent 5e91416c53
commit f244266378

View File

@ -87,7 +87,7 @@ namespace ASC.Web.Files.Services.WCFService.FileOperations
using var scope = ThirdPartyOperation.CreateScope();
var scopeClass = scope.ServiceProvider.GetService<FileDownloadOperationScope>();
var (globalStore, filesLinkUtility, _, _, _) = scopeClass;
var stream = TempStream.Create();
using var stream = TempStream.Create();
(ThirdPartyOperation as FileDownloadOperation<string>).CompressToZip(stream, scope);
(DaoOperation as FileDownloadOperation<int>).CompressToZip(stream, scope);
@ -294,8 +294,6 @@ namespace ASC.Web.Files.Services.WCFService.FileOperations
{
if (CancellationToken.IsCancellationRequested)
{
compressTo.Dispose();
stream.Dispose();
CancellationToken.ThrowIfCancellationRequested();
}