reduce dependencies in PublishedSnapshotService, more linting

This commit is contained in:
Shannon
2020-12-08 10:20:03 +11:00
parent 1a35cf5164
commit f16b8e705a
7 changed files with 101 additions and 111 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
@@ -81,8 +81,6 @@ namespace Umbraco.Web.PublishedCache.NuCache
#region Constructors
//private static int _singletonCheck;
public PublishedSnapshotService(
PublishedSnapshotServiceOptions options,
IMainDom mainDom,
@@ -110,9 +108,6 @@ namespace Umbraco.Web.PublishedCache.NuCache
IOptions<NuCacheSettings> config)
: base(publishedSnapshotAccessor, variationContextAccessor)
{
//if (Interlocked.Increment(ref _singletonCheck) > 1)
// throw new Exception("Singleton must be instantiated only once!");
_options = options;
_mainDom = mainDom;
_lifeTime = lifeTime;