rebus-org / Rebus.ServiceProvider

:bus: Microsoft Extensions Dependency Injection container adapter for Rebus
https://mookid.dk/category/rebus
Other
65 stars 32 forks source link

ServiceProvider handler registration on Rebus 6 #26

Closed fabiogusmao closed 4 years ago

fabiogusmao commented 4 years ago

When upgrading to Rebus 6.0 I get the following error.

Code:

services.AutoRegisterHandlersFromAssemblyOf<CompanyIntegrationEventsHandler>();

Error:`

System.MissingMethodException: 'Method not found: 'Void Rebus.Extensions.EnumerableExtensions.ForEach(System.Collections.Generic.IEnumerable`1<!!0>, System.Action`1<!!0>)'.'

I am using the following NuGet packages and versions:

TIA

mookid8000 commented 4 years ago

Should be fixed in Rebus.ServiceProvider 5.0.0