rabbitmq-tutorials / dotnet
rabbitmq/rabbitmq-tutorials/dotnet/AGENTS.md
Consumer programs (Receive, Worker, ReceiveLogs, ReceiveLogsDirect, ReceiveLogsTopic, RPCServer) use Console.ReadLine to block until the user presses [Enter]. When standard input is not connected to a TTY, ReadLine() returns null immediately and the process exits before receiving any deliveries. Keep stdin open in automated or background contexts by piping from a blocking process: The Console.ReadLine() and the "Press [enter] to exit." must never be deleted as a workaround: they exist for interactive use.
What's in it
- Agent Notes for These .NET Tutorials
- Console.ReadLine in non-TTY environments
# Agent Notes for These .NET Tutorials ## `Console.ReadLine` in non-TTY environments Consumer programs (Receive, Worker, ReceiveLogs, ReceiveLogsDirect, ReceiveLogsTopic, RPCServer) use `Console.ReadLine` to block until the user presses `[Enter]`. When standard input is not connected to a TTY, `ReadLine()` returns `null` immediately and the process exits before receiving any deliveries. Keep stdin open in automated or background contexts by piping from a blocking process: ```sh (while true; do sleep 20; done) | dotnet run --project Receive & (while true; do sleep 20; done) | dotnet run --project ReceiveLogs & ``` The `Console.ReadLine()` and the "Press [enter] to exit." must never be deleted as a workaround: they exist for interactive use.
More agent context in rabbitmq/rabbitmq-tutorials
3 other files this repository gives its agents.
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

