Skip to content

Commit

Permalink
analizators: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhorukovAnton committed Jan 31, 2022
1 parent 34ff334 commit 17cb4a6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions web/ASC.Web.Core/Files/DocumentServiceLicense.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

using System;
using System.Collections.Generic;
using System.Net.Http;

using ASC.Common;
using ASC.Common.Caching;
Expand All @@ -35,17 +36,21 @@ public class DocumentServiceLicense
public CoreBaseSettings CoreBaseSettings { get; }
private FilesLinkUtility FilesLinkUtility { get; }
private FileUtility FileUtility { get; }
private IHttpClientFactory ClientFactory { get; }


public DocumentServiceLicense(
ICache cache,
CoreBaseSettings coreBaseSettings,
FilesLinkUtility filesLinkUtility,
FileUtility fileUtility)
FileUtility fileUtility,
IHttpClientFactory clientFactory)
{
Cache = cache;
CoreBaseSettings = coreBaseSettings;
FilesLinkUtility = filesLinkUtility;
FileUtility = fileUtility;
ClientFactory = clientFactory;
}

private CommandResponse GetDocumentServiceLicense()
Expand All @@ -65,7 +70,9 @@ private CommandResponse GetDocumentServiceLicense()
null,
null,
null,
FileUtility.SignatureSecret);
FileUtility.SignatureSecret,
ClientFactory
);
Cache.Insert(cacheKey, commandResponse, DateTime.UtcNow.Add(CACHE_EXPIRATION));
}

Expand Down

0 comments on commit 17cb4a6

Please sign in to comment.