Ejemplo n.º 1
0
 public TimelinePoint(TimelinePosition cause, TimelinePosition position, EventType eventType, Event e, bool scheduled)
 {
     Cause     = cause;
     Position  = position;
     EventType = eventType;
     Event     = e;
     Scheduled = scheduled;
 }
Ejemplo n.º 2
0
        public void Write(TimelinePosition cause, Many <Event> events)
        {
            var points = _db.Write(cause, events);

            foreach (var point in points)
            {
                _scope.Push(point);
            }
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        internal void ResumeWith(ResumeInfo info)
        {
            foreach (var pointInfo in info.Points)
            {
                if (pointInfo.OnSchedule)
                {
                    _resumedPositions.Add(pointInfo.Point.Position);
                }

                _resumeCheckpoint = pointInfo.Point.Position;
            }
        }
Ejemplo n.º 5
0
 public static void Write(this ITimeline timeline, TimelinePosition cause, params Event[] events)
 {
     timeline.Write(cause, events.ToMany());
 }
Ejemplo n.º 6
0
 public static void Write(this ITimeline timeline, TimelinePosition cause, IEnumerable <Event> events)
 {
     timeline.Write(cause, events.ToMany());
 }
Ejemplo n.º 7
0
 public static void Write(this ITimeline timeline, TimelinePosition cause, Event e)
 {
     timeline.Write(cause, Many.Of(e));
 }