Example #1
0
 private static ImmutableArray <MemoryRedlockInstance> MemInstances(int count, MinValidityDelegate minValidity)
 => Instances(count, (i) => MemoryRedlockInstance.Create(i.ToString(), minValidity));
Example #2
0
 private static void Unlock(string key, params MemoryRedlockInstance[] instances)
 => MemoryRedlockInstance.Unlock(key, instances.ToImmutableArray());
Example #3
0
 private static void Lock(string key, string nonce, params MemoryRedlockInstance[] instances)
 => MemoryRedlockInstance.Lock(key, nonce, instances.ToImmutableArray());
Example #4
0
 private static void Unlock(string key, ImmutableArray <MemoryRedlockInstance> instances)
 => MemoryRedlockInstance.Unlock(key, instances);
Example #5
0
 private static void Lock(string key, string nonce, TimeSpan ttl, ImmutableArray <MemoryRedlockInstance> instances)
 => MemoryRedlockInstance.Lock(key, nonce, ttl, instances);