Пример #1
0
        public static WorkflowDefinitionVersion Build <T>(this IWorkflowBuilder builder) where T : IWorkflow, new()
        {
            var workflow = new T();

            builder.WithId(typeof(T).Name);
            workflow.Build(builder);

            return(builder.Build());
        }
 public static IWorkflow Build(this IWorkflowBuilder builder, IServiceProvider serviceProvider)
 => builder.Build(new ServiceBuildContext(serviceProvider));
 public static IWorkflow Build(this IWorkflowBuilder builder)
 {
     return(builder.Build(new DefaultBuildContext()));
 }