Understanding the fundamental concepts of SimpleMessageBus
SimpleMessageBus is built around a few core concepts that work together to provide a simple yet powerful messaging system. Understanding these concepts will help you effectively use the library in your applications.
public interface IMessagePublisher{ Task PublishAsync<T>(T message) where T : IMessage; Task PublishAsync<T>(T message, CancellationToken cancellationToken) where T : IMessage;}
Dispatchers coordinate the delivery of messages from the transport mechanism to the appropriate handlers. They handle deserialization, routing, and error handling.