rabbitmq-tutorials/dotnet-6
2021-09-28 17:01:42 -07:00
..
EmitLog Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
EmitLogDirect Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
EmitLogTopic Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
NewTask Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
PublisherConfirms Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
Receive Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
ReceiveLogs Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
ReceiveLogsDirect Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
ReceiveLogsTopic Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
RPCClient Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
RPCServer Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
Send Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
Worker Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
.gitignore Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
dotnet-6.sln Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
README.md Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
Receiver Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
recompile.bat Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
recompile.ps1 Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
recompile.sh Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00
update.ps1 Add .NET 6.0 tutorials with Visual Studio 2022 2021-09-28 17:01:42 -07:00

Dotnet C# code for RabbitMQ tutorials

Here you can find the C# code examples for RabbitMQ tutorials using .NET 6.0.

You will also find a solution file for Visual Studio 2022.

To successfully use the examples you will need a running RabbitMQ server.

Requirements

Requirements on Windows

We're using the command line (start->run cmd.exe) to compile and run -p the code. Alternatively you could use Visual Studio, but this set of tutorials assumes the command line.

Requirements on Linux

Code

Each command is best run in a separate console/terminal instance run from the root of the tutorial directory.

First run the recompile.sh script on Linux, for Windows run recompile.bat script from Command Line or recompile.ps1 script from Power Shell. This will run dotnet restore and build each project which is required before they can be run. Alternatively or if you are on windows cd into each project and run dotnet restore manually.

Tutorial one: "Hello World!"

dotnet run -p Receive/Receive.csproj
dotnet run -p Send/Send.csproj

Tutorial two: Work Queues

dotnet run -p Worker/Worker.csproj
dotnet run -p NewTask/NewTask.csproj

Tutorial three: Publish/Subscribe

dotnet run -p ReceiveLogs/ReceiveLogs.csproj
dotnet run -p EmitLog/EmitLog.csproj

Tutorial four: Routing

dotnet run -p ReceiveLogsDirect/ReceiveLogsDirect.csproj info
dotnet run -p EmitLogDirect/EmitLogDirect.csproj

Tutorial five: Topics

dotnet run -p ReceiveLogsTopic/ReceiveLogsTopic.csproj anonymous.info
dotnet run -p EmitLogTopic/EmitLogTopic.csproj

Tutorial six: RPC

dotnet run -p RPCServer/RPCServer.csproj
dotnet run -p RPCClient/RPCClient.csproj

Tutorial seven: Publisher Confirms

dotnet run -p PublisherConfirms/PublisherConfirms.csproj