コード例 #1
0
ファイル: Function.cs プロジェクト: kevinmiles/Stl.Fusion
 protected FunctionBase()
 {
     Locks = ComputedRegistry.Instance.GetLocksFor(this);
 }
コード例 #2
0
 public AsyncSetLock(IAsyncLockSet <TKey> lockSet, TKey key)
 {
     LockSet = lockSet;
     Key     = key;
 }
コード例 #3
0
 protected ComputingCacheBase(IAsyncCache <TKey, TValue> cache, IAsyncLockSet <TKey>?lockSet = null)
 {
     Cache = cache;
     Locks = lockSet ?? new AsyncLockSet <TKey>(ReentryMode.CheckedFail);
 }
コード例 #4
0
ファイル: Function.cs プロジェクト: masums/Stl.Fusion
 protected FunctionBase(IComputedRegistry computedRegistry)
 {
     ComputedRegistry   = computedRegistry;
     Locks              = computedRegistry.GetLocksFor(this);
     InvalidatedHandler = c => Unregister((IComputed <TIn, TOut>)c !);
 }