diff --git a/AsyncGenerator.yml b/AsyncGenerator.yml
index 9489bf4e..c5118e76 100644
--- a/AsyncGenerator.yml
+++ b/AsyncGenerator.yml
@@ -28,259 +28,6 @@
registerPlugin:
- type: AsyncGenerator.Core.Plugins.EmptyRegionRemover
assemblyName: AsyncGenerator.Core
-- filePath: CoreMemoryCache\NHibernate.Caches.CoreMemoryCache\NHibernate.Caches.CoreMemoryCache.csproj
- targetFramework: net461
- concurrentRun: true
- applyChanges: true
- analyzation:
- methodConversion:
- - conversion: Ignore
- hasAttributeName: ObsoleteAttribute
- callForwarding: true
- cancellationTokens:
- guards: true
- methodParameter:
- - anyInterfaceRule: PubliclyExposedType
- parameter: Optional
- - parameter: Optional
- rule: PubliclyExposedType
- - parameter: Required
- scanMethodBody: true
- scanForMissingAsyncMembers:
- - all: true
- transformation:
- configureAwaitArgument: false
- localFunctions: true
- asyncLock:
- type: NHibernate.Util.AsyncLock
- methodName: LockAsync
- registerPlugin:
- - type: AsyncGenerator.Core.Plugins.EmptyRegionRemover
- assemblyName: AsyncGenerator.Core
-- filePath: EnyimMemcached\NHibernate.Caches.EnyimMemcached\NHibernate.Caches.EnyimMemcached.csproj
- concurrentRun: true
- applyChanges: true
- analyzation:
- methodConversion:
- - conversion: Ignore
- hasAttributeName: ObsoleteAttribute
- callForwarding: true
- cancellationTokens:
- guards: true
- methodParameter:
- - anyInterfaceRule: PubliclyExposedType
- parameter: Optional
- - parameter: Optional
- rule: PubliclyExposedType
- - parameter: Required
- scanMethodBody: true
- scanForMissingAsyncMembers:
- - all: true
- transformation:
- configureAwaitArgument: false
- localFunctions: true
- asyncLock:
- type: NHibernate.Util.AsyncLock
- methodName: LockAsync
- registerPlugin:
- - type: AsyncGenerator.Core.Plugins.EmptyRegionRemover
- assemblyName: AsyncGenerator.Core
-- filePath: MemCache\NHibernate.Caches.MemCache\NHibernate.Caches.MemCache.csproj
- concurrentRun: true
- applyChanges: true
- analyzation:
- methodConversion:
- - conversion: Ignore
- hasAttributeName: ObsoleteAttribute
- callForwarding: true
- cancellationTokens:
- guards: true
- methodParameter:
- - anyInterfaceRule: PubliclyExposedType
- parameter: Optional
- - parameter: Optional
- rule: PubliclyExposedType
- - parameter: Required
- scanMethodBody: true
- scanForMissingAsyncMembers:
- - all: true
- transformation:
- configureAwaitArgument: false
- localFunctions: true
- asyncLock:
- type: NHibernate.Util.AsyncLock
- methodName: LockAsync
- registerPlugin:
- - type: AsyncGenerator.Core.Plugins.EmptyRegionRemover
- assemblyName: AsyncGenerator.Core
-- filePath: Prevalence\NHibernate.Caches.Prevalence\NHibernate.Caches.Prevalence.csproj
- concurrentRun: true
- applyChanges: true
- analyzation:
- methodConversion:
- - conversion: Ignore
- hasAttributeName: ObsoleteAttribute
- callForwarding: true
- cancellationTokens:
- guards: true
- methodParameter:
- - anyInterfaceRule: PubliclyExposedType
- parameter: Optional
- - parameter: Optional
- rule: PubliclyExposedType
- - parameter: Required
- scanMethodBody: true
- scanForMissingAsyncMembers:
- - all: true
- transformation:
- configureAwaitArgument: false
- localFunctions: true
- asyncLock:
- type: NHibernate.Util.AsyncLock
- methodName: LockAsync
- registerPlugin:
- - type: AsyncGenerator.Core.Plugins.EmptyRegionRemover
- assemblyName: AsyncGenerator.Core
-- filePath: RtMemoryCache\NHibernate.Caches.RtMemoryCache\NHibernate.Caches.RtMemoryCache.csproj
- concurrentRun: true
- applyChanges: true
- analyzation:
- methodConversion:
- - conversion: Ignore
- hasAttributeName: ObsoleteAttribute
- callForwarding: true
- cancellationTokens:
- guards: true
- methodParameter:
- - anyInterfaceRule: PubliclyExposedType
- parameter: Optional
- - parameter: Optional
- rule: PubliclyExposedType
- - parameter: Required
- scanMethodBody: true
- scanForMissingAsyncMembers:
- - all: true
- transformation:
- configureAwaitArgument: false
- localFunctions: true
- asyncLock:
- type: NHibernate.Util.AsyncLock
- methodName: LockAsync
- registerPlugin:
- - type: AsyncGenerator.Core.Plugins.EmptyRegionRemover
- assemblyName: AsyncGenerator.Core
-- filePath: SharedCache\NHibernate.Caches.SharedCache\NHibernate.Caches.SharedCache.csproj
- concurrentRun: true
- applyChanges: true
- analyzation:
- methodConversion:
- - conversion: Ignore
- hasAttributeName: ObsoleteAttribute
- callForwarding: true
- cancellationTokens:
- guards: true
- methodParameter:
- - anyInterfaceRule: PubliclyExposedType
- parameter: Optional
- - parameter: Optional
- rule: PubliclyExposedType
- - parameter: Required
- scanMethodBody: true
- scanForMissingAsyncMembers:
- - all: true
- transformation:
- configureAwaitArgument: false
- localFunctions: true
- asyncLock:
- type: NHibernate.Util.AsyncLock
- methodName: LockAsync
- registerPlugin:
- - type: AsyncGenerator.Core.Plugins.EmptyRegionRemover
- assemblyName: AsyncGenerator.Core
-- filePath: SysCache\NHibernate.Caches.SysCache\NHibernate.Caches.SysCache.csproj
- concurrentRun: true
- applyChanges: true
- analyzation:
- methodConversion:
- - conversion: Ignore
- hasAttributeName: ObsoleteAttribute
- callForwarding: true
- cancellationTokens:
- guards: true
- methodParameter:
- - anyInterfaceRule: PubliclyExposedType
- parameter: Optional
- - parameter: Optional
- rule: PubliclyExposedType
- - parameter: Required
- scanMethodBody: true
- scanForMissingAsyncMembers:
- - all: true
- transformation:
- configureAwaitArgument: false
- localFunctions: true
- asyncLock:
- type: NHibernate.Util.AsyncLock
- methodName: LockAsync
- registerPlugin:
- - type: AsyncGenerator.Core.Plugins.EmptyRegionRemover
- assemblyName: AsyncGenerator.Core
-- filePath: SysCache2\NHibernate.Caches.SysCache2\NHibernate.Caches.SysCache2.csproj
- concurrentRun: true
- applyChanges: true
- analyzation:
- methodConversion:
- - conversion: Ignore
- hasAttributeName: ObsoleteAttribute
- callForwarding: true
- cancellationTokens:
- guards: true
- methodParameter:
- - anyInterfaceRule: PubliclyExposedType
- parameter: Optional
- - parameter: Optional
- rule: PubliclyExposedType
- - parameter: Required
- scanMethodBody: true
- scanForMissingAsyncMembers:
- - all: true
- transformation:
- configureAwaitArgument: false
- localFunctions: true
- asyncLock:
- type: NHibernate.Util.AsyncLock
- methodName: LockAsync
- registerPlugin:
- - type: AsyncGenerator.Core.Plugins.EmptyRegionRemover
- assemblyName: AsyncGenerator.Core
-- filePath: Velocity\NHibernate.Caches.Velocity\NHibernate.Caches.Velocity.csproj
- concurrentRun: true
- applyChanges: true
- analyzation:
- methodConversion:
- - conversion: Ignore
- hasAttributeName: ObsoleteAttribute
- callForwarding: true
- cancellationTokens:
- guards: true
- methodParameter:
- - anyInterfaceRule: PubliclyExposedType
- parameter: Optional
- - parameter: Optional
- rule: PubliclyExposedType
- - parameter: Required
- scanMethodBody: true
- scanForMissingAsyncMembers:
- - all: true
- transformation:
- configureAwaitArgument: false
- localFunctions: true
- asyncLock:
- type: NHibernate.Util.AsyncLock
- methodName: LockAsync
- registerPlugin:
- - type: AsyncGenerator.Core.Plugins.EmptyRegionRemover
- assemblyName: AsyncGenerator.Core
- filePath: NHibernate.Caches.Common.Tests\NHibernate.Caches.Common.Tests.csproj
targetFramework: net461
concurrentRun: true
diff --git a/CoreDistributedCache/NHibernate.Caches.CoreDistributedCache/Async/CoreDistributedCache.cs b/CoreDistributedCache/NHibernate.Caches.CoreDistributedCache/Async/CoreDistributedCache.cs
index 5b0411cf..39ed8a3c 100644
--- a/CoreDistributedCache/NHibernate.Caches.CoreDistributedCache/Async/CoreDistributedCache.cs
+++ b/CoreDistributedCache/NHibernate.Caches.CoreDistributedCache/Async/CoreDistributedCache.cs
@@ -13,19 +13,20 @@
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
+using System.Threading;
+using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Distributed;
using NHibernate.Caches.Util;
using NHibernate.Util;
namespace NHibernate.Caches.CoreDistributedCache
{
- using System.Threading.Tasks;
- using System.Threading;
- public partial class CoreDistributedCache : ICache
+
+ public abstract partial class CoreDistributedCacheBase : CacheBase
{
///
- public async Task