Publishing a Message Processed Successfully Event from Service Control

servicecontrol

(Jatinder Brar) #1

Bit of a silly ask,but for curiosity sake, can Service Control be used to publish a “Message Succeeded” Event (an antithesis to the MessageFailed Event)?


(Andreas Öhlund) #2

ServiceControl doesn’t expose this event at the moment by the endpoints them selfves can give you this. Take a look at the ReceivePipelineCompleted event

https://docs.particular.net/nservicebus/pipeline/events?version=core_7.1#receive-pipeline-completed

Do notice the caveat mentioned in the blue box, for some transports there is still a chance that the receive operation might have to rollback. One example would be the DTC deciding to rollback the distributed transaction using MSMQ or the SqlServer transport.

What is the use case that you had in mind for this?

Hope this helps!