Skip to content

The NServiceBus format

Note

NServiceBus licensing. NServiceBus is dual-licensed: the Reciprocal Public License 1.5, or Particular Software's commercial agreement (particular.net/LicenseAgreement). This format was captured from NServiceBus 10.2.9, and only the module's own .NET test programs use it. The Go module itself does not depend on NServiceBus.

Exchange messages with .NET endpoints that use NServiceBus, from a Go service on the estate's bus.

gitlab.com/phpboyscout/go/envelope-nservicebus is the NServiceBus adapter for go/envelope. It is released (v0.1.0). NServiceBus() is NServiceBus's message headers as an envelope.Format:

f := nservicebus.NServiceBus() // an envelope.Format

Give it to a go/messaging adapter as the writer to send to NServiceBus endpoints, or add it to the reader chain to read what NServiceBus endpoints send. envelope.Read tells it apart from CloudEvents by its NServiceBus.MessageId header.

The event travels in NServiceBus's own headers and the payload as the body, unconstrained. TimeSent keeps microseconds. What an NServiceBus message carries that the event has no place for arrives as envelope.Foreign.

It was captured from NServiceBus 10.2.9; see Tested versions. The design is go/messaging's spec 0014, D2, D9 and D10. Where this section and the spec differ, this section describes the code.

Start here

Exchange a message with an NServiceBus endpoint writes an event Go-side, has a .NET endpoint handle it, and reads a message NServiceBus itself sent.

Do a task

Understand it

Look something up