This proof-of-concept repository will show how to decouple from message brokers, specifically Mass Transit implementation. See the Wiki tab for more details.
- DecouplingMessageBroker is the "host" program, it is used to send messages to the "worker".
- Logic is a DLL that is shared between programs.
- Worker is receving a message from the host program.
- Framework is the main DLL that holds the message broker implementation.
- Framework.Test is a testing DLL used to test message broker code.
If you don't want to clone the repository to see the results, you can visit the Action tab where all Framework.Test
tests run (RabbitMq transport).
In memory transport is provided by default, you can test the functionality by running code tests in Visual Studio.
If you want to see an example where a message is sent from one console to another you will need RabbitMq.
- Install docker.
- Run
docker compose -f './docker-compose.yml' up
. - Load the project and set startup projects to both
DecouplingMessageBrokers
andWorker
. - Don't forget to stop the container when you finish.