Пример #1
0
 internal void Push(TimelinePoint point)
 {
     if (Flow.Key.Type.CanCall(point.EventType))
     {
         Flow.Push(point);
     }
 }
Пример #2
0
 internal void Push(TimelinePoint point)
 {
     foreach (var flow in _flows)
     {
         flow.Push(point);
     }
 }
Пример #3
0
 internal TopicWhenCall(
     Topic topic,
     TimelinePoint point,
     IDependencySource dependencies,
     ClaimsPrincipal principal,
     CancellationToken cancellationToken)
     : base(topic, point, dependencies, principal, cancellationToken)
 {
     _newEvents = new Many <Event>();
 }
Пример #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);
     }
 }
Пример #5
0
 internal WhenCall(
     Flow flow,
     TimelinePoint point,
     IDependencySource dependencies,
     ClaimsPrincipal principal,
     CancellationToken cancellationToken)
     : base(flow, point)
 {
     Dependencies      = dependencies;
     Principal         = principal;
     CancellationToken = cancellationToken;
 }
Пример #6
0
        private void WhenPushed(TimelinePoint point)
        {
            Point = point;

            try
            {
                Push();
            }
            finally
            {
                Point = null;
            }
        }
Пример #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);
     }
 }
Пример #8
0
 public ResumePoint(TimelinePoint point, bool onSchedule)
 {
     Point      = point;
     OnSchedule = onSchedule;
 }
Пример #9
0
 internal GivenCall(Flow flow, TimelinePoint point, FlowGiven given) : base(flow, point)
 {
     Given = given;
 }
Пример #10
0
 internal FlowCall(Flow flow, TimelinePoint point)
 {
     Flow  = flow;
     Point = point;
 }
Пример #11
0
 internal void PushScheduled(TimelinePoint point)
 {
     Push(_timelineDb.WriteScheduled(point));
 }