rabbitmq-tutorials/dotnet
Michael Klishin 6af7fbc100 Merge pull request #135 from mattbaker/autoack
Switch C# to using autoAck argument (targets .NET client 5.0+)
2017-07-24 18:22:03 +03:00
..
EmitLog migrate to new dotnet project format 2017-04-04 10:03:59 +01:00
EmitLogDirect migrate to new dotnet project format 2017-04-04 10:03:59 +01:00
EmitLogTopic migrate to new dotnet project format 2017-04-04 10:03:59 +01:00
NewTask Update NewTask.cs 2017-06-05 18:15:10 +01:00
Receive switch C# to using autoAck argument 2017-05-29 15:11:21 -07:00
ReceiveLogs switch C# to using autoAck argument 2017-05-29 15:11:21 -07:00
ReceiveLogsDirect switch C# to using autoAck argument 2017-05-29 15:11:21 -07:00
ReceiveLogsTopic switch C# to using autoAck argument 2017-05-29 15:11:21 -07:00
RPCClient switch C# to using autoAck argument 2017-05-29 15:11:21 -07:00
RPCServer switch C# to using autoAck argument 2017-05-29 15:11:21 -07:00
Send migrate to new dotnet project format 2017-04-04 10:03:59 +01:00
Worker switch C# to using autoAck argument 2017-05-29 15:11:21 -07:00
.gitignore Ignore .lock.json files 2016-09-01 16:44:21 +03:00
README.md dotnet: add instructions for running dotnet restore. 2016-12-14 09:01:20 +00:00
Receiver update dotnet tutorial to use dotnet core instead of mono 2016-08-19 12:03:00 +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
dotnet run -p Send

Tutorial two: Work Queues

dotnet run -p Worker
dotnet run -p NewTask

Tutorial three: Publish/Subscribe

dotnet run -p ReceiveLogs
dotnet run -p EmitLog

Tutorial four: Routing

dotnet run -p ReceiveLogsDirect info
dotnet run -p EmitLogDirect

Tutorial five: Topics

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

Tutorial six: RPC

dotnet run -p RPCServer
dotnet run -p RPCClient