Step 1: Install the Package
Choose the provider that matches your infrastructure:Step 2: Define Your Message
Create a message class that implementsIMessage:
Step 3: Create a Message Handler
ImplementIMessageHandler<T> to process your messages:
Step 4: Configure Services
Add SimpleMessageBus to your dependency injection container:Step 5: Publish Messages
InjectIMessagePublisher 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