This commit is contained in:
StellaOps Bot
2025-12-13 02:22:15 +02:00
parent 564df71bfb
commit 999e26a48e
395 changed files with 25045 additions and 2224 deletions

View File

@@ -29,7 +29,7 @@ internal sealed record AdobeCursor(
var cacheDocument = new DocumentObject();
foreach (var (key, entry) in FetchCache)
{
cacheDocument[key] = entry.ToBson();
cacheDocument[key] = entry.ToDocument();
}
document["fetchCache"] = cacheDocument;
@@ -138,7 +138,7 @@ internal sealed record AdobeCursor(
{
if (element.Value is DocumentObject entryDocument)
{
dictionary[element.Name] = AdobeFetchCacheEntry.FromBson(entryDocument);
dictionary[element.Name] = AdobeFetchCacheEntry.FromDocument(entryDocument);
}
}
@@ -150,7 +150,7 @@ internal sealed record AdobeFetchCacheEntry(string Sha256)
{
public static AdobeFetchCacheEntry Empty { get; } = new(string.Empty);
public DocumentObject ToBson()
public DocumentObject ToDocument()
{
var document = new DocumentObject
{
@@ -160,7 +160,7 @@ internal sealed record AdobeFetchCacheEntry(string Sha256)
return document;
}
public static AdobeFetchCacheEntry FromBson(DocumentObject document)
public static AdobeFetchCacheEntry FromDocument(DocumentObject document)
{
var sha = document.TryGetValue("sha256", out var shaValue) ? shaValue.AsString : string.Empty;
return new AdobeFetchCacheEntry(sha);