up
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user