Skip to content

Commit b63f466

Browse files
committed
- fixed ioc registrations
1 parent 1db18cf commit b63f466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SourceFlow/IocExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public static ISourceFlowConfig WithSaga<TAggregate, TSaga>(this ISourceFlowConf
237237
.GetField("repository", BindingFlags.Instance | BindingFlags.NonPublic)
238238
?.SetValue(saga, c.GetRequiredService<IRepository>());
239239

240-
var dispatcher = c.GetRequiredService<ICommandDispatcher>();
240+
var dispatcher = c.GetRequiredService<SagaDispatcher>();
241241
dispatcher.Register(saga);
242242

243243
return (TSaga)saga;
@@ -483,7 +483,7 @@ public static ISourceFlowConfig WithSagas(this ISourceFlowConfig config, Func<Ty
483483

484484
if (index == 1)
485485
{
486-
var dispatcher = c.GetRequiredService<ICommandDispatcher>();
486+
var dispatcher = c.GetRequiredService<SagaDispatcher>();
487487
dispatcher.Register(sagaInstance);
488488
}
489489

0 commit comments

Comments
 (0)