2017-02-05 22:22:34 +00:00
|
|
|
|
namespace Tapeti.Flow
|
|
|
|
|
{
|
|
|
|
|
public static class ConfigExtensions
|
|
|
|
|
{
|
2017-08-14 11:58:01 +00:00
|
|
|
|
public static TapetiConfig WithFlow(this TapetiConfig config, IFlowRepository 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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|