ConnectEverything / nats-by-example

Collection of runnable, reference examples using NATS (https://nats.io)
https://natsbyexample.com
152 stars 37 forks source link

[C# .NET V2] Example for List subjects for a specific stream #217

Closed scottf closed 1 month ago

scottf commented 2 months ago

Create an example that demonstrates how to list the subjects for a stream Directory is jetstream\list-subjects

mtmk commented 2 months ago

not sure if this is implemented. We have a GetStream() call, is that enough? Or is there a specific API to pull just the subjects out?

scottf commented 2 months ago

Yes, the GetStreamAsync with a StreamInfoRequest that has a SubjectsFilter.