コード例 #1
0
        // Utilities

        private async ValueTask <HashEntry[]> LoadElementAsync(TreeElement element)
        {
            HashEntry[] result = await _database.HashGetAllAsync(element.PathInTreeNamespace());

            element.LastStoreInfo = GetLastStoreInfo(result);
            return(result);
        }
コード例 #2
0
        private async ValueTask StoreTreeElementAsync(TreeElement element, HashEntry[] hashEntries, ElementStoreInfo lastStoreInfo)
        {
            await _database.HashSetAsync(element.PathInTreeNamespace(), hashEntries);

            element.LastStoreInfo = lastStoreInfo;
        }