mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-09-08 10:10:49 +00:00
40 lines
1009 B
C#
40 lines
1009 B
C#
using Esiur.Data.Types;
|
|
using Esiur.Security.Authority;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Esiur.Resource;
|
|
|
|
public class CustomEventOccurredInfo
|
|
{
|
|
public readonly EventDef EventDef;
|
|
public readonly IResource Resource;
|
|
public readonly object Value;
|
|
public readonly object Issuer;
|
|
public readonly Func<Session, bool> Receivers;
|
|
public readonly ResourceCursor Cursor;
|
|
public ulong Revision => Cursor.Revision;
|
|
public readonly DateTime RecordedAt;
|
|
|
|
public string Name => EventDef.Name;
|
|
|
|
public CustomEventOccurredInfo(
|
|
IResource resource,
|
|
EventDef eventDef,
|
|
Func<Session, bool> receivers,
|
|
object issuer,
|
|
object value,
|
|
ResourceCursor cursor,
|
|
DateTime recordedAt)
|
|
{
|
|
Resource = resource;
|
|
EventDef = eventDef;
|
|
Receivers = receivers;
|
|
Issuer = issuer;
|
|
Value = value;
|
|
Cursor = cursor;
|
|
RecordedAt = recordedAt;
|
|
}
|
|
}
|