Skip to main content
Get SimpleMessageBus working in your application with just a few simple steps.

Step 1: Install the Package

Choose the provider that matches your infrastructure:

Step 2: Define Your Message

Create a message class that implements IMessage:

Step 3: Create a Message Handler

Implement IMessageHandler<T> to process your messages:

Step 4: Configure Services

Add SimpleMessageBus to your dependency injection container:

Step 5: Publish Messages

Inject IMessagePublisher and publish messages:

Step 6: Start Processing

The message dispatcher will automatically start processing messages when your application starts. For Azure Functions or console applications, you might need additional configuration.
For Azure Functions, see the Azure Functions guide for trigger-based message processing.

Next Steps

Congratulations! You now have SimpleMessageBus running in your application. Here are some next steps:

Learn Core Concepts

Understand messages, publishers, and handlers

Provider Configuration

Deep dive into provider-specific configuration

Testing Guide

Learn how to test your message handlers

API Reference

Explore the complete API documentation

Example Application

For a complete working example, check out our sample applications on GitHub.