Ejemplo n.º 1
0
 public IActivityBuilder Add <T>(
     string activityTypeName,
     Action <ISetupActivity <T> >?setup = default,
     [CallerLineNumber] int lineNumber  = default,
     [CallerFilePath] string?sourceFile = default)
     where T : class, IActivity =>
 WorkflowBuilder.Add(activityTypeName, setup, null, lineNumber, sourceFile);
Ejemplo n.º 2
0
        public IActivityBuilder Then <T>(string activityTypeName, Action <IActivityBuilder>?branch = default, [CallerLineNumber] int lineNumber = default, [CallerFilePath] string?sourceFile = default)
            where T : class, IActivity
        {
            var activityBuilder = WorkflowBuilder.Add <T>(activityTypeName, branch, null, lineNumber, sourceFile);

            Then(activityBuilder);
            return(activityBuilder);
        }