Exemple #1
0
 private void PrepareTreeStoreElement(IClientSession clientSession, int additionalEntryCount, out HashEntry[] hashEntries, out ElementStoreInfo lastStoreInfo)
 {
     lastStoreInfo = new ElementStoreInfo(clientSession);
     hashEntries   = new HashEntry[3 + additionalEntryCount];
     hashEntries.Set(^ 1, "LastStoreTimestamp", lastStoreInfo.Timestamp);
     hashEntries.Set(^ 2, "LastStoreClientName", lastStoreInfo.ClientName);
     hashEntries.Set(^ 3, "LastStoreClientEndpoint", lastStoreInfo.ClientEndPoint);
 }
Exemple #2
0
        private async ValueTask StoreTreeElementAsync(TreeElement element, HashEntry[] hashEntries, ElementStoreInfo lastStoreInfo)
        {
            await _database.HashSetAsync(element.PathInTreeNamespace(), hashEntries);

            element.LastStoreInfo = lastStoreInfo;
        }