2019-08-14 10:20:53 +00:00
|
|
|
|
using Tapeti.Config;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti.Flow
|
2017-02-05 22:22:34 +00:00
|
|
|
|
{
|
|
|
|
|
public static class ConfigExtensions
|
|
|
|
|
{
|
2019-08-14 10:20:53 +00:00
|
|
|
|
public static ITapetiConfigBuilder WithFlow(this ITapetiConfigBuilder 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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|