Closed rosieks closed 6 years ago
Is there any reason why THandler here must be of type IHandleMessages in https://github.com/rebus-org/Rebus.ServiceProvider/blob/master/Rebus.ServiceProvider/ServiceCollectionExtensions.Handlers.cs#L22
THandler
IHandleMessages
Now I have to choose one of my handlers. Instead of that I would like to be able to choose for example Program class or create marker intefaces e.g. IAssembly.
Program
IAssembly
No reason, other than wanting to encourage the developer to pick an assembly with at least one handler type 🙂
Type constraint is removed in 4.0.1
which is out in a few minutes
Is there any reason why
THandler
here must be of typeIHandleMessages
in https://github.com/rebus-org/Rebus.ServiceProvider/blob/master/Rebus.ServiceProvider/ServiceCollectionExtensions.Handlers.cs#L22Now I have to choose one of my handlers. Instead of that I would like to be able to choose for example
Program
class or create marker intefaces e.g.IAssembly
.