mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-09-08 10:10:49 +00:00
Revisions
This commit is contained in:
@@ -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