Skip to main content

Posts

Showing posts with the label Messaging Bus

Messaging through a service Bus using MassTansit with Asp.Net Core 2.2 tutorial

Today we going to look at a quick tutorial on how to use MassTransit as a messaging bus for your Asp.Net core 2.2 application. I have uploaded the sample project on GitHub , if you want to follow along Spin up new project To begin spin up a new Api project, I am using Visual Studio 2019, I also added 2 nuget packages listed below.     <PackageReference Include="MassTransit.AspNetCore" Version="5.5.5" />     <PackageReference Include="MassTransit.RabbitMQ" Version="5.5.5" /> Startup.cs  In your Startup.cs file public void ConfigureServices(IServiceCollection services)         {             //Register your message consumer             services.AddScoped<OrderConsumer>();             // Register MassTransit             services.AddMassTransit(x =>         ...