nats-io/nats.net ? reverse-engineered prompt

Reverse engineered prompt

Build me a modern async .NET client library for NATS.

I want it to make it easy to connect to a NATS server, publish and subscribe to messages, and do request reply in a clean way with async and await. It should also support JetStream for durable messaging, plus key value storage, object storage, and services. Please include simple examples I can run from a console app, and make the API feel easy for beginners but still solid for real production use.

Use the latest supported .NET versions and keep compatibility broad enough for .NET Standard too. If you need to check current NATS or .NET docs online while wiring up the details, go ahead. I also want good tests, clear error handling, and a polished README with quick start instructions and short code samples so someone can get it running fast.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab