MyServiceBusDocs

Getting started

Publish your first message.

In four short steps, configure RabbitMQ, register a consumer, and publish an event. Choose your language at each step.

  1. 01

    Install the RabbitMQ transport

    The transport brings in the core runtime and abstractions.

    C#
    Loading code…

    Using Maven? Add the same group, artifact, and version as a standard dependency.

  2. 02

    Configure the bus

    Register the consumer and let MyServiceBus create its receive endpoint.

    C#
    Loading code…
  3. 03

    Define messages and a consumer

    A consumer handles one message type through a consume context.

    C#
    Loading code…
  4. 04

    Publish

    Publishing fans the event out to every interested receive endpoint.

    C#
    Loading code…
RabbitMQ must be running

The examples connect to a broker on localhost using its default connection settings.

NextUnderstand the messaging model
Core concepts →