public TimelinePoint(TimelinePosition cause, TimelinePosition position, EventType eventType, Event e, bool scheduled) { Cause = cause; Position = position; EventType = eventType; Event = e; Scheduled = scheduled; }
public void Write(TimelinePosition cause, Many <Event> events) { var points = _db.Write(cause, events); foreach (var point in points) { _scope.Push(point); } }
public static void Initialize(Flow flow, FlowKey key, TimelinePosition checkpoint, bool done) { Expect(flow.Key).IsNull("Flow is already initialized"); flow.Key = key; flow.Type = key.Type; flow.Id = key.Id; flow.Checkpoint = checkpoint; flow.Done = done; }
internal void ResumeWith(ResumeInfo info) { foreach (var pointInfo in info.Points) { if (pointInfo.OnSchedule) { _resumedPositions.Add(pointInfo.Point.Position); } _resumeCheckpoint = pointInfo.Point.Position; } }
public static void Write(this ITimeline timeline, TimelinePosition cause, params Event[] events) { timeline.Write(cause, events.ToMany()); }
public static void Write(this ITimeline timeline, TimelinePosition cause, IEnumerable <Event> events) { timeline.Write(cause, events.ToMany()); }
public static void Write(this ITimeline timeline, TimelinePosition cause, Event e) { timeline.Write(cause, Many.Of(e)); }