Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CacheEntry.cs
3
5{
9 [CollectionName("AttachmentCache")]
10 [TypeName(TypeNameSerialization.FullName)]
11 [Index("Expires")]
12 [Index("Url")]
13 [Index("ParentId")]
14 public class CacheEntry
15 {
16 private string? objectId = null;
17 private CaseInsensitiveString parentId = string.Empty;
18 private CaseInsensitiveString localFileName = string.Empty;
19 private CaseInsensitiveString url = string.Empty;
20 private CaseInsensitiveString contentType = string.Empty;
21 private DateTime expires = DateTime.MinValue;
22
26 public CacheEntry()
27 {
28 }
29
33 [ObjectId]
34 public string? ObjectId
35 {
36 get => this.objectId;
37 set => this.objectId = value;
38 }
39
43 public DateTime Expires
44 {
45 get => this.expires;
46 set => this.expires = value;
47 }
48
52 [DefaultValueStringEmpty]
54 {
55 get => this.parentId;
56 set => this.parentId = value;
57 }
58
62 [DefaultValueStringEmpty]
64 {
65 get => this.localFileName;
66 set => this.localFileName = value;
67 }
68
73 {
74 get => this.url;
75 set => this.url = value;
76 }
77
82 {
83 get => this.contentType;
84 set => this.contentType = value;
85 }
86 }
87}
Contains information about a file in the local cache.
Definition: CacheEntry.cs:15
CacheEntry()
Contains information about a file in the local cache.
Definition: CacheEntry.cs:26
CaseInsensitiveString ContentType
Content-Type
Definition: CacheEntry.cs:82
DateTime Expires
Timestamp of entry
Definition: CacheEntry.cs:44
CaseInsensitiveString ParentId
Associated Legal or Contract ID (Parent ID)
Definition: CacheEntry.cs:54
string? ObjectId
Object ID
Definition: CacheEntry.cs:35
CaseInsensitiveString Url
Local file name.
Definition: CacheEntry.cs:73
CaseInsensitiveString LocalFileName
Local file name.
Definition: CacheEntry.cs:64
Represents a case-insensitive string.
static readonly CaseInsensitiveString Empty
Empty case-insensitive string
TypeNameSerialization
How the type name should be serialized.