diff --git a/src/Rebus.Operations/Rebus.Operations.SimpleInjector/SimpleInjectorExtensions.cs b/src/Rebus.Operations/Rebus.Operations.SimpleInjector/SimpleInjectorExtensions.cs index 03a7dad..9f8ea03 100644 --- a/src/Rebus.Operations/Rebus.Operations.SimpleInjector/SimpleInjectorExtensions.cs +++ b/src/Rebus.Operations/Rebus.Operations.SimpleInjector/SimpleInjectorExtensions.cs @@ -41,7 +41,7 @@ public static Container AddRebusOperationsHandlers(this Container container, container.RegisterConditional(Lifestyle.Scoped,c=> !c.Handled); container.RegisterConditional(Lifestyle.Scoped,c=> !c.Handled); - container.Register(Lifestyle.Scoped); + container.RegisterConditional(Lifestyle.Scoped, c=> !c.Handled); container.RegisterConditional(Lifestyle.Scoped, c=> !c.Handled); container.Collection.Append(typeof(IHandleMessages<>), typeof(ProcessOperationSaga), Lifestyle.Scoped);