Skip to content

Commit

Permalink
conditional register RebusOperationMessaging
Browse files Browse the repository at this point in the history
  • Loading branch information
fw2568 committed Feb 27, 2023
1 parent efd9ba3 commit ec14a05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static Container AddRebusOperationsHandlers(this Container container,
container.RegisterConditional<IOperationDispatcher, DefaultOperationDispatcher>(Lifestyle.Scoped,c=> !c.Handled);
container.RegisterConditional<IWorkflow, DefaultWorkflow>(Lifestyle.Scoped,c=> !c.Handled);

container.Register<IOperationMessaging, RebusOperationMessaging>(Lifestyle.Scoped);
container.RegisterConditional<IOperationMessaging, RebusOperationMessaging>(Lifestyle.Scoped, c=> !c.Handled);
container.RegisterConditional<IMessageEnricher, DefaultMessageEnricher>(Lifestyle.Scoped, c=> !c.Handled);

container.Collection.Append(typeof(IHandleMessages<>), typeof(ProcessOperationSaga), Lifestyle.Scoped);
Expand Down

0 comments on commit ec14a05

Please sign in to comment.