EventDriven.EventBus.Dapr icon indicating copy to clipboard operation
EventDriven.EventBus.Dapr copied to clipboard

Event Handlers Singleton only?

Open robodroid opened this issue 2 years ago • 2 comments

Nice library. Am I reading the code correctly? It appears Event Handlers must be singletons and other lifetimes are not supported.

robodroid avatar Feb 16 '23 23:02 robodroid

Currently the lifetime of the event bus is Singleton, but it would not be difficult to add a parameter to specify other lifetimes. I'm happy to add this.

tonysneed avatar Feb 17 '23 07:02 tonysneed

I will add this to the next version.

tonysneed avatar Oct 13 '23 21:10 tonysneed