示例#1
0
 public async ValueTask SaveAsync()
 {
     using (await _settingsAsyncLock.LockAsync())
     {
         var config = new BlockStorageConfig(0, _size, _clusterMetadataMap);
         _settings.SetContent("config", config);
     }
 }
示例#2
0
        public async ValueTask SaveAsync()
        {
            using (await _settingsAsyncLock.LockAsync())
            {
                await _blockStorage.SaveAsync();

                var config = new ContentStorageConfig(0, _contentMetadataStorage.ToArray());
                _settings.SetContent("Config", config);
            }
        }