NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

SendOptions API needs improvement

Open helenktsai opened this issue 3 years ago • 0 comments
trafficstars

Issue transferred from internal repo

There are several pain points with the current API that can be improved including:

  • It requires use of extension methods instead of properties (e.g. options.SetMessageId(...) instead of options.MessageId = ...) to allow downstream repositories add their own options (e.g. SendToSite)
  • There needs to be a way to retrieve configured options
  • It's challenging to "stringify" the configured options
  • SendOptions can easily be reused in multiple send operations which can easily introduce bugs or undesired behavior
  • etc.

helenktsai avatar Jul 26 '22 20:07 helenktsai