OrchardCore.MassTransit is an open-source project that demonstrates the integration of MassTransit with Orchard Core. This project provides a comprehensive example of how to configure and use MassTransit within an Orchard Core application.
- MassTransit Integration: Demonstrates how to set up and configure MassTransit in an Orchard Core application.
- Event Handling: Includes examples of event consumers and event publishing.
- Configuration: Shows how to configure MassTransit using
appsettings.json
. - Dependency Injection: Utilizes Orchard Core's dependency injection framework to manage MassTransit components.
-
Clone the repository:
git clone https://github.com/emrahtokalak/OrchardCore.MassTransit.git cd OrchardCore.MassTransit
-
Restore the dependencies:
dotnet restore
-
Build the project:
dotnet build
Configure MassTransit in the appsettings.json
file located in the OrchardCore.MassTransit directory. Example configuration:
{
"OrchardCore_MassTransit": {
"RabbitMQ": {
"Configuration": "amqp://guest:guest@localhost:5672"
}
}
}