rabbitmq-tutorials/dotnet
2020-06-08 04:47:22 +03:00
..
EmitLog .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
EmitLogDirect .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
EmitLogTopic .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
NewTask .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
PublisherConfirms .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
Receive .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
ReceiveLogs .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
ReceiveLogsDirect .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
ReceiveLogsTopic .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
RPCClient .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
RPCServer .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
Send .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
Worker .NET: more consistency, bump client to 6.1.0 2020-06-08 04:47:22 +03:00
.gitignore Update RabbitMQ.Client to version 6.0.0-rc3 2020-04-01 09:52:14 -07: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.bat Added rebuild BAT for .NET 2020-03-06 15:51:16 +02:00
recompile.ps1 Update RabbitMQ.Client to version 6.0.0-rc3 2020-04-01 09:52:14 -07:00
recompile.sh dotnet: add instructions for running dotnet restore. 2016-12-14 09:01:20 +00:00
update.ps1 Update RabbitMQ.Client to version 6.0.0 2020-04-16 16:35:29 -07: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