Make the WorkflowBuilders factory aware

Mar 25, 2013 at 1:48 PM
Edited Mar 25, 2013 at 1:49 PM
Hi,

I think it could be a strong feature to be able to replace Activator.CreateInstance by our own factory.

I know their is overload with instance of BasicOperation but, I think the Do<T>() makes things easier to read.

Something like :
Workflow<Context>.Definition().Configure()
.WithFactory(type => _locator.Resolve(type))
.When<Context>
.Do<ComplexType>()
.Start();

where default factory would be current behavior with Activator.
Coordinator
Apr 16, 2013 at 7:32 PM
that's a good idea. I will include this in the next release.

thanks for the feedback.