Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IAttachmentCacheService.cs
3
5{
10 [DefaultImplementation(typeof(AttachmentCacheService))]
12 {
18 Task<(byte[]?, string)> TryGet(string Url);
19
28 Task Add(string Url, string ParentId, bool Permanent, byte[] Data, string ContentType);
29
35 Task<bool> Remove(string Url);
36
42 Task<bool> RemoveAttachments(Attachment[]? Attachments);
43
48 Task MakeTemporary(string ParentId);
49
54 Task MakePermanent(string ParentId);
55 }
56}
Contains a reference to an attachment assigned to a legal object.
Definition: Attachment.cs:9
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...