public static EventSourceKey get_event_source_key(EventSourceId event_source_id = null, ArtifactId artifact_id = null)
        {
            var es = event_source_id ?? EventSourceId.New();
            var a  = artifact_id ?? ArtifactId.New();

            return(new EventSourceKey(es, a));
        }
Beispiel #2
0
 public static CommittedEvent single(uint event_log_sequence_number) => new CommittedEvent(
     event_log_sequence_number,
     DateTimeOffset.UtcNow,
     EventSourceId.New(),
     execution_contexts.create(),
     new Artifact(ArtifactId.New(), ArtifactGeneration.First),
     false,
     "{\"something\":42}");
Beispiel #3
0
 public static CommittedEvent single() => new CommittedEvent(
     EventLogSequenceNumber.Initial,
     DateTimeOffset.UtcNow,
     EventSourceId.New(),
     execution_contexts.create(),
     new Artifact(ArtifactId.New(), ArtifactGeneration.First),
     false,
     "{\"something\":42}");
Beispiel #4
0
 public static CommittedEvent single() => new CommittedEvent(
     EventLogSequenceNumber.Initial,
     DateTimeOffset.UtcNow,
     EventSourceId.New(),
     new ExecutionContext(
         Microservice.New(),
         TenantId.Unknown,
         Version.NotSet,
         Environment.Undetermined,
         CorrelationId.New(),
         Claims.Empty,
         CultureInfo.InvariantCulture),
     new MyFirstEvent());
Beispiel #5
0
 public TheEventSource()
     : base(EventSourceId.New())
 {
 }
 public GenericEventSource()
     : base(EventSourceId.New())
 {
 }
 public ImplementationOfAbstractEventSource()
     : base(EventSourceId.New())
 {
 }