2017-02-05 22:22:34 +00:00
|
|
|
|
namespace Tapeti.Flow
|
|
|
|
|
{
|
|
|
|
|
public static class ConfigExtensions
|
|
|
|
|
{
|
2017-07-27 15:32:31 +00:00
|
|
|
|
public static TapetiConfig WithFlow(this TapetiConfig config, IFlowRepository<Default.FlowState> flowRepository = null)
|
2017-02-05 22:22:34 +00:00
|
|
|
|
{
|
2017-07-27 15:30:36 +00:00
|
|
|
|
config.Use(new FlowMiddleware(flowRepository));
|
2017-02-05 22:22:34 +00:00
|
|
|
|
return config;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|