1 Star 0 Fork 0

zhzhouq9/rabbitmq-tutorials

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zhzhouq9/rabbitmq-tutorials.git
git@gitee.com:zhzhouq9/rabbitmq-tutorials.git
zhzhouq9
rabbitmq-tutorials
rabbitmq-tutorials
master

搜索帮助