示例#1
0
        public IMutexAsync Create <TKey>(IEntity <TKey> entityToLock)
        {
            var entityMutex = new EntityMutex <TKey>(entityToLock, _entityTable);

            _mutexGc.Register(entityMutex);
            return(entityMutex);
        }