public void ReleaseLock(IStorageLock storageLock) { if (this.Storage is IExtendedStorage) { (this.Storage as IExtendedStorage).ReleaseLock(storageLock); } throw new Exception("Available storage does not provide IExtendedStorage capabilities"); }
public bool AcquireLock(string key, TimeSpan timeout, out IStorageLock storageLock) { if (this.Storage is IExtendedStorage) { return (this.Storage as IExtendedStorage).AcquireLock(key, timeout, out storageLock); } throw new Exception("Available storage does not provide IExtendedStorage capabilities"); }