Example #1
0
        /// <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;
        }
Example #2
0
 static EventProperties BuildEventProperties(DynamicTableEntity e)
 {
     return(EventProperties.ReadEntity(e.Properties));
 }
Example #3
0
 public override void ReadEntity(IDictionary <string, EntityProperty> properties, OperationContext operationContext)
 {
     base.ReadEntity(properties, operationContext);
     Properties = EventProperties.ReadEntity(properties);
 }
Example #4
0
 /// <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)
 {
 }
Example #5
0
 /// <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)
 {
 }
Example #6
0
 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();
 }