Ejemplo n.º 1
0
 public IConnectionBuilder Then(string activityName)
 {
     return(WorkflowBuilder.Connect(
                () => Source,
                () => WorkflowBuilder.Activities.First(x => x.Name == activityName),
                Outcome));
 }
Ejemplo n.º 2
0
        public IWorkflowBuilder Then(string activityName)
        {
            WorkflowBuilder.Connect(
                () => this,
                () => WorkflowBuilder.Activities.First(x => x.Name == activityName)
                );

            return(WorkflowBuilder);
        }
Ejemplo n.º 3
0
        public IActivityBuilder Then <T>(Action <T> setup = default, Action <IActivityBuilder> branch = default, string name = default) where T : class, IActivity
        {
            var target = WorkflowBuilder.Add(setup, name);

            branch?.Invoke(target);

            WorkflowBuilder.Connect(Source, target, Outcome);
            return(target);
        }
Ejemplo n.º 4
0
 public IActivityBuilder Then(IActivityBuilder targetActivity)
 {
     WorkflowBuilder.Connect(this, targetActivity);
     return(this);
 }