/// <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, nameof(properties)); Requires.NotNull(includes, nameof(includes)); Id = id; Includes = includes; Properties = properties; }
/// <summary> /// Constructs a new <see cref="EventData"/> instance which doesn't have any additional properties /// but includes a set of additional entity includes. /// </summary> /// <param name="id"> /// The unique identifier of the event (used for duplicate event detection). /// </param> /// <param name="includes"> /// Additional entity includes to be stored along with this event /// </param> public EventData(EventId id, EventIncludes includes) : this(id, EventProperties.None, includes) { }