zarusz / SlimMessageBus

Lightweight message bus interface for .NET (pub/sub and request-response) with transport plugins for popular message brokers.
Apache License 2.0
475 stars 78 forks source link

[Host] Dispose message if required #258

Closed EtherZa closed 6 months ago

EtherZa commented 6 months ago

Fixes #256 by disposing a message (if required) once MessageProcessor<TTransportMessage>.ProcessMessage has completed the pipeline.

Please note that in order for ProcessMessage to retain ownership of the message object, it can no longer return the message object as part of ProcessMessageResult. The Message property in ProcessMessageResult has therefore been removed.

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
76.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud