Default = null bij WithFlow
This commit is contained in:
parent
c79d7eec4f
commit
1fc8bece0e
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
public static class ConfigExtensions
|
public static class ConfigExtensions
|
||||||
{
|
{
|
||||||
public static TapetiConfig WithFlow(this TapetiConfig config, IFlowRepository<Default.FlowState> flowRepository)
|
public static TapetiConfig WithFlow(this TapetiConfig config, IFlowRepository<Default.FlowState> flowRepository = null)
|
||||||
{
|
{
|
||||||
config.Use(new FlowMiddleware(flowRepository));
|
config.Use(new FlowMiddleware(flowRepository));
|
||||||
return config;
|
return config;
|
||||||
|
@ -25,7 +25,6 @@ namespace Test
|
|||||||
|
|
||||||
var config = new TapetiConfig(new SimpleInjectorDependencyResolver(container))
|
var config = new TapetiConfig(new SimpleInjectorDependencyResolver(container))
|
||||||
.WithFlow()
|
.WithFlow()
|
||||||
//.WithFlowSqlRepository("data source=localhost;initial catalog=lef;integrated security=True;multipleactiveresultsets=True", 1)
|
|
||||||
.WithDataAnnotations()
|
.WithDataAnnotations()
|
||||||
.RegisterAllControllers()
|
.RegisterAllControllers()
|
||||||
.Build();
|
.Build();
|
||||||
|
Loading…
Reference in New Issue
Block a user