/// <summary> /// Constructs a new <see cref="EventData"/> instance using given event properties /// and additional entity includes. /// </summary> /// <param name="id"> /// The unique identifier of the event (used for duplicate event detection). /// </param> /// <param name="properties"> /// The properties for this event (includes both meta and data properties). /// </param> /// <param name="includes"> /// Additional entity includes to be stored along with this event /// </param> public EventData(EventId id, EventProperties properties, EventIncludes includes) { Requires.NotNull(properties, "properties"); Requires.NotNull(includes, "includes"); Id = id; Includes = includes; Properties = properties; }
static EventProperties BuildEventProperties(DynamicTableEntity e) { return(EventProperties.ReadEntity(e.Properties)); }
public override void ReadEntity(IDictionary <string, EntityProperty> properties, OperationContext operationContext) { base.ReadEntity(properties, operationContext); Properties = EventProperties.ReadEntity(properties); }
/// <summary> /// Constructs a new <see cref="EventData"/> instance using given event properties. /// </summary> /// <param name="id"> /// The unique identifier of the event (used for duplicate event detection). /// </param> /// <param name="properties"> /// The properties for this event (includes both meta and data properties). /// </param> public EventData(EventId id, EventProperties properties) : this(id, properties, EventIncludes.None) { }
internal RecordedEvent(EventId id, EventProperties properties, IEnumerable<Include> includes, Partition partition, int version) { Id = id; Version = version; Properties = properties; EventOperations = Prepare(partition).ToArray(); IncludedOperations = Prepare(includes, partition).ToArray(); }