using Tapeti.Config;
// ReSharper disable UnusedMember.Global
namespace Tapeti.Flow
{
///
/// ITapetiConfigBuilder extension for enabling Flow.
///
public static class ConfigExtensions
{
///
/// Enables Tapeti Flow.
///
///
/// An optional IFlowRepository implementation to persist flow state. If not provided, flow state will be lost when the application restarts.
///
public static ITapetiConfigBuilder WithFlow(this ITapetiConfigBuilder config, IFlowRepository flowRepository = null)
{
config.Use(new FlowExtension(flowRepository));
return config;
}
}
}