rabbitmq-tutorials/dotnet
Michael Klishin a923a25009
Undo #259
It turned out to be a mistake to accept it.
References #262.
2020-03-08 19:16:53 +03:00
..
EmitLog feat: avoid using magic strings 2019-08-12 14:34:49 +02:00
EmitLogDirect Depend on .NET client 5.1.x 2018-09-14 21:13:32 +02:00
EmitLogTopic Depend on .NET client 5.1.x 2018-09-14 21:13:32 +02:00
NewTask Depend on .NET client 5.1.x 2018-09-14 21:13:32 +02:00
PublisherConfirms remove unnecessary args 2019-09-13 16:14:15 -06:00
Receive Depend on .NET client 5.1.x 2018-09-14 21:13:32 +02:00
ReceiveLogs feat: avoid using magic strings 2019-08-12 14:34:49 +02:00
ReceiveLogsDirect Depend on .NET client 5.1.x 2018-09-14 21:13:32 +02:00
ReceiveLogsTopic Depend on .NET client 5.1.x 2018-09-14 21:13:32 +02:00
RPCClient .NET tutorial 6: remove an unused variable 2019-12-09 14:55:17 +03:00
RPCServer Depend on .NET client 5.1.x 2018-09-14 21:13:32 +02:00
Send Depend on .NET client 5.1.x 2018-09-14 21:13:32 +02:00
Worker Undo #259 2020-03-08 19:16:53 +03:00
.gitignore Ignore .lock.json files 2016-09-01 16:44:21 +03:00
README.md Update README with Tutorial 7 2019-09-18 16:19:03 -06:00
Receiver Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
recompile.sh dotnet: add instructions for running dotnet restore. 2016-12-14 09:01:20 +00:00

Dotnet C# code for RabbitMQ tutorials

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

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 and NuGet package, 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. 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