rebus-org / Rebus.Events

:bus: Convenient event configuration extensions for Rebus
https://mookid.dk/category/rebus
Other
17 stars 1 forks source link

Duplicate trigger of events #3

Closed dariogriffo closed 4 years ago

dariogriffo commented 4 years ago

I might be doing something wrong but the events are being fired twice in a simple program. Attached is an example of this using rabbitmq, but I have also tested with InMemoryBus

Example code here

Output 2020-03-26_1928

Platform:

Windows 10
netcoreapp3.1

Packages installed

Rebus.Autofac Version 7.0.0
Rebus.Events Version 4.0.1
Rebus.RabbitMq Version 6.1.0
dariogriffo commented 4 years ago

PR opened for this here

dariogriffo commented 4 years ago

I need the ability to call .Events(c...) more than once, since I'm creating an standard component on top of rebus (that will call .Events once and then the consumer of the component can add more events. All of them are aggregated during configuration time and that's how I found the issue.

mookid8000 commented 4 years ago

Fixed by #4