From cd173a7f908f259fdddc816fca806884ce899a94 Mon Sep 17 00:00:00 2001 From: Ziya Suzen Date: Thu, 17 Oct 2024 05:35:30 +0100 Subject: [PATCH] Readme tweaks --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b5300ede..ec96b447d 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,12 @@ Head over to [NATS documentation](https://docs.nats.io/nats-concepts/overview) f ## Quick Start +Install the [NATS.Net](https://www.nuget.org/packages/NATS.Net) package from NuGet: + +```bash +dotnet add package NATS.Net +``` + Basic messaging: ```csharp @@ -48,9 +54,10 @@ await foreach (var msg in nc.SubscribeAsync(subject: "foo")) await nc.PublishAsync(subject: "foo", data: "Hello, World!"); ``` -Persistance with JetStream: +Persistence with JetStream: ```csharp +// NATS JetStream basic publish-consume example await using var nc = new NatsClient(); var js = nc.CreateJetStreamContext();