GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — rabbitmq-tutorials/dotnet at master · rohochan/rabbitmq-tutorials

Expand file tree

/

dotnet

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

dotnet

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
EmitLog
EmitLog
 
 
EmitLogDirect
EmitLogDirect
 
 
EmitLogTopic
EmitLogTopic
 
 
NewTask
NewTask
 
 
RPCClient
RPCClient
 
 
RPCServer
RPCServer
 
 
Receive
Receive
 
 
ReceiveLogs
ReceiveLogs
 
 
ReceiveLogsDirect
ReceiveLogsDirect
 
 
ReceiveLogsTopic
ReceiveLogsTopic
 
 
Send
Send
 
 
Worker
Worker
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
Receiver
Receiver
 
 
recompile.sh
recompile.sh
 
 

README.md

Outline

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

  • dotnet core

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

  • dotnet core

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
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.