From 5e45b8fa905f814433ab212f4b5f0c96198e08da Mon Sep 17 00:00:00 2001 From: Menno van Lavieren Date: Thu, 27 Jul 2017 17:32:31 +0200 Subject: [PATCH] Default = null bij WithFlow --- Tapeti.Flow/ConfigExtensions.cs | 2 +- Test/Program.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Tapeti.Flow/ConfigExtensions.cs b/Tapeti.Flow/ConfigExtensions.cs index 38ad5f3..843333e 100644 --- a/Tapeti.Flow/ConfigExtensions.cs +++ b/Tapeti.Flow/ConfigExtensions.cs @@ -2,7 +2,7 @@ { public static class ConfigExtensions { - public static TapetiConfig WithFlow(this TapetiConfig config, IFlowRepository flowRepository) + public static TapetiConfig WithFlow(this TapetiConfig config, IFlowRepository flowRepository = null) { config.Use(new FlowMiddleware(flowRepository)); return config; diff --git a/Test/Program.cs b/Test/Program.cs index 78f9770..6eecc55 100644 --- a/Test/Program.cs +++ b/Test/Program.cs @@ -25,7 +25,6 @@ namespace Test var config = new TapetiConfig(new SimpleInjectorDependencyResolver(container)) .WithFlow() - //.WithFlowSqlRepository("data source=localhost;initial catalog=lef;integrated security=True;multipleactiveresultsets=True", 1) .WithDataAnnotations() .RegisterAllControllers() .Build();