rabbitmq-tutorials/dotnet
2017-09-15 15:14:35 -03:00
..
EmitLog Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
EmitLogDirect Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
EmitLogTopic Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
NewTask Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
Receive Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
ReceiveLogs Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
ReceiveLogsDirect Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
ReceiveLogsTopic Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
RPCClient Replaced the obsolete QueueingBasicConsumer object with an EventingBasicConsumer 2017-09-15 15:14:35 -03:00
RPCServer Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
Send Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
Worker Update dotnet to use v5.0 of the client 2017-07-24 17:00:03 +01:00
.gitignore Ignore .lock.json files 2016-09-01 16:44:21 +03:00
README.md Closes #143 2017-08-07 23:57:20 +03: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