Esempio n. 1
0
 internal void Push(TimelinePoint point)
 {
     if (Flow.Key.Type.CanCall(point.EventType))
     {
         Flow.Push(point);
     }
 }
Esempio n. 2
0
 internal void Push(TimelinePoint point)
 {
     foreach (var flow in _flows)
     {
         flow.Push(point);
     }
 }
Esempio n. 3
0
 internal TopicWhenCall(
     Topic topic,
     TimelinePoint point,
     IDependencySource dependencies,
     ClaimsPrincipal principal,
     CancellationToken cancellationToken)
     : base(topic, point, dependencies, principal, cancellationToken)
 {
     _newEvents = new Many <Event>();
 }
Esempio n. 4
0
 private void Push(TimelinePoint point)
 {
     if (State.IsConnecting || State.IsConnected)
     {
         _scope.PushScheduled(point);
     }
     else
     {
         Log.Warning("[timeline] Cannot push to schedule when {Phase:l} - ignoring {Point:l}", State.Phase, point);
     }
 }
Esempio n. 5
0
 internal WhenCall(
     Flow flow,
     TimelinePoint point,
     IDependencySource dependencies,
     ClaimsPrincipal principal,
     CancellationToken cancellationToken)
     : base(flow, point)
 {
     Dependencies      = dependencies;
     Principal         = principal;
     CancellationToken = cancellationToken;
 }
Esempio n. 6
0
        private void WhenPushed(TimelinePoint point)
        {
            Point = point;

            try
            {
                Push();
            }
            finally
            {
                Point = null;
            }
        }
Esempio n. 7
0
 public void Push(TimelinePoint point)
 {
     if (State.IsConnecting || State.IsConnected)
     {
         _points.OnNext(point);
     }
     else
     {
         Log.Warning(
             "[timeline] Cannot push to scope in phase {Phase} - ignoring {Point:l}",
             State.Phase,
             point);
     }
 }
Esempio n. 8
0
 public ResumePoint(TimelinePoint point, bool onSchedule)
 {
     Point      = point;
     OnSchedule = onSchedule;
 }
Esempio n. 9
0
 internal GivenCall(Flow flow, TimelinePoint point, FlowGiven given) : base(flow, point)
 {
     Given = given;
 }
Esempio n. 10
0
 internal FlowCall(Flow flow, TimelinePoint point)
 {
     Flow  = flow;
     Point = point;
 }
Esempio n. 11
0
 internal void PushScheduled(TimelinePoint point)
 {
     Push(_timelineDb.WriteScheduled(point));
 }