mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-10-24 03:50:57 +00:00
Revisions
This commit is contained in:
1 parent
2028db671f
commit
3b55d8d2f8
37 files changed
+1743
-230
No files matched your search
@@ -12,15 +12,30 @@ public struct PropertyModificationInfo
|
||||
public readonly PropertyDef PropertyDef;
|
||||
public string Name => PropertyDef.Name;
|
||||
public readonly ulong Age;
|
||||
public ulong Revision => Cursor.Revision;
|
||||
public readonly ResourceCursor Cursor;
|
||||
public readonly DateTime RecordedAt;
|
||||
public object Value;
|
||||
|
||||
public PropertyModificationInfo(IResource resource, PropertyDef propertyDef, object value, ulong age)
|
||||
public PropertyModificationInfo(
|
||||
IResource resource,
|
||||
PropertyDef propertyDef,
|
||||
object value,
|
||||
ResourceCursor cursor,
|
||||
DateTime recordedAt)
|
||||
{
|
||||
Resource = resource;
|
||||
PropertyDef = propertyDef;
|
||||
Age = age;
|
||||
Cursor = cursor;
|
||||
Age = cursor.Revision;
|
||||
RecordedAt = recordedAt;
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public PropertyModificationInfo(IResource resource, PropertyDef propertyDef, object value, ulong age)
|
||||
: this(resource, propertyDef, value, new ResourceCursor(Guid.Empty, age), DateTime.UtcNow)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user