Skip to content

BrunoCaimar/Sample-ConsoleService

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exemplo MassTransit .NET Core Service - Apresentação Semear

  1. Altere as configurações no arquivo appsettings.json
  2. Execute o projeto SampleServiceProducer
  3. Execute o projeto SampleServiceConsumer

Esse exemplo foi baseado em:

Sample MassTransit .NET Core Service

In this sample, a .NET core service is created (using .NET Core 3.1) which supports logging, configuration, and dependency injection, along with a basic MassTransit configuration to connect to RabbitMQ.

In the past, this would have been accomplished using Topshelf, however, at this point Topshelf is really specific to Windows and isn't needed with .NET Core to create Linux/Mac services.

Building

To build the sample, just go into the folder and type dotnet run. It will attempt to connect to the broker based upon the configuration in the appsettings.json file.

About

A sample .NET Core 2.2 Console Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%