Exemplo n.º 1
0
        // Token: 0x0600162E RID: 5678 RVA: 0x00026D4C File Offset: 0x00025D4C
        protected void OnTransition(ActivityExecutionContext context, WorkflowElement sender)
        {
            Transition transition = sender as Transition;

            if (transition != null)
            {
                string text = transition.TransitionTo;
                if (transition is ReturnTransition)
                {
                    text = this.transitionedFrom;
                }
                if (!string.IsNullOrEmpty(text) && string.IsNullOrEmpty(this.TransitionTo) && this.Name != text)
                {
                    this.transitionTo = text;
                    context.CancelChildren();
                    if (this.ExitActivity != null)
                    {
                        context.ScheduleActivity(this.ExitActivity);
                        return;
                    }
                }
                else
                {
                    Console.WriteLine("Trying to transition to {0}", transition.TransitionTo);
                }
            }
        }
Exemplo n.º 2
0
 // Token: 0x0600162D RID: 5677 RVA: 0x00026CF4 File Offset: 0x00025CF4
 protected void ExecuteActivities(ActivityExecutionContext context, WorkflowElement sender)
 {
     if (this.transitions.Count != 0)
     {
         this.transitions.ForEach(delegate(Transition transition)
         {
             context.ScheduleActivity(transition, new CompletionCallback(this.OnTransition));
         });
         return;
     }
     context.CancelChildren();
 }
Exemplo n.º 3
0
 // Token: 0x060014C6 RID: 5318 RVA: 0x000243DE File Offset: 0x000233DE
 protected void OnDoneCompleted(ActivityExecutionContext context, WorkflowElement sender)
 {
     Console.WriteLine("CS: Stategraph {0} is complete", this.name);
     context.CancelChildren();
 }