10 [DefaultImplementation(typeof(AttachmentCacheService))]
18 Task<(
byte[]?, string)>
TryGet(
string Url);
28 Task
Add(
string Url,
string ParentId,
bool Permanent,
byte[] Data,
string ContentType);
Contains a reference to an attachment assigned to a legal object.
Represents a service that caches images downloaded via http calls. They are stored for a certain dura...
Task Add(string Url, string ParentId, bool Permanent, byte[] Data, string ContentType)
Adds an image to the cache.
Task MakePermanent(string ParentId)
Makes items in the cache, belonging to a given parent object, permanent.
Task MakeTemporary(string ParentId)
Makes items in the cache, belonging to a given parent object, temporary.
Task< bool > RemoveAttachments(Attachment[]? Attachments)
Removes any attachments found in an identity, from the cache.
Task<(byte[]?, string)> TryGet(string Url)
Tries to get a cached image given the specified url.
Task< bool > Remove(string Url)
Removes an image from the cache.
A service that can be loaded and unloaded at will. Typically during startup and shutdown of an applic...