Example #1
0
 private void EmitStateUpdated(CommittedEventWorkItem committedEventWorkItem, string partition, string newState)
 {
     committedEventWorkItem.ScheduleEmitEvents(
         new[]
     {
         new EmittedEvent(MakePartitionStateStreamName(partition), Guid.NewGuid(), "StateUpdated", newState)
     });
 }
Example #2
0
 private void EmitStateUpdated(CommittedEventWorkItem committedEventWorkItem, string partition, string newState, CheckpointTag eventTag, CheckpointTag expectedTag)
 {
     committedEventWorkItem.ScheduleEmitEvents(
         new[]
     {
         new EmittedEvent(MakePartitionStateStreamName(partition), Guid.NewGuid(), "StateUpdated", newState, eventTag, expectedTag)
     });
 }
Example #3
0
        private void EmitEmittedEvents(CommittedEventWorkItem committedEventWorkItem, EmittedEvent[] emittedEvents)
        {
            bool result = emittedEvents != null && emittedEvents.Length > 0;

            if (result)
            {
                committedEventWorkItem.ScheduleEmitEvents(emittedEvents);
            }
        }