public void LockByCreatingSyncConfiguration(string fileName, ServerInfo sourceServer, IStorageActionsAccessor accessor) { var syncLock = new SynchronizationLock { SourceServer = sourceServer, FileLockedAt = DateTime.UtcNow }; accessor.SetConfig(RavenFileNameHelper.SyncLockNameForFile(fileName), JsonExtensions.ToJObject(syncLock)); log.Debug("File '{0}' was locked", fileName); }