Skip to content

Commit

Permalink
Readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmk committed Oct 17, 2024
1 parent eda265d commit cd173a7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -48,9 +54,10 @@ await foreach (var msg in nc.SubscribeAsync<string>(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();

Expand Down

0 comments on commit cd173a7

Please sign in to comment.