Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Event"/> class.
 /// </summary>
 /// <param name="eventLogSequenceNumber">The event log sequence number of this event.</param>
 /// <param name="executionContext">The execution context.</param>
 /// <param name="metadata">The event metadata.</param>
 /// <param name="aggregate">The aggregate metadata.</param>
 /// <param name="eventHorizonMetadata">The event horizon metadata.</param>
 /// <param name="content">The event content.</param>
 public Event(
     ulong eventLogSequenceNumber,
     ExecutionContext executionContext,
     EventMetadata metadata,
     AggregateMetadata aggregate,
     EventHorizonMetadata eventHorizonMetadata,
     BsonDocument content)
 {
     EventLogSequenceNumber = eventLogSequenceNumber;
     ExecutionContext       = executionContext;
     Metadata     = metadata;
     Aggregate    = aggregate;
     EventHorizon = eventHorizonMetadata;
     Content      = content;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StreamEvent"/> class.
 /// </summary>
 /// <param name="streamPosition">The position in the stream.</param>
 /// <param name="partition">The partition id.</param>
 /// <param name="executionContext">The execution context.</param>
 /// <param name="metadata">The event metadata.</param>
 /// <param name="aggregate">The aggregate metadata.</param>
 /// <param name="eventHorizonMetadata">The event horizon metadata.</param>
 /// <param name="content">The event content.</param>
 public StreamEvent(
     ulong streamPosition,
     PartitionId partition,
     ExecutionContext executionContext,
     StreamEventMetadata metadata,
     AggregateMetadata aggregate,
     EventHorizonMetadata eventHorizonMetadata,
     BsonDocument content)
 {
     StreamPosition   = streamPosition;
     Partition        = partition;
     ExecutionContext = executionContext;
     Metadata         = metadata;
     Aggregate        = aggregate;
     EventHorizon     = eventHorizonMetadata;
     Content          = content;
 }