This is a preview release of a few small features and bug fixes.
- Support for slow consumer events
- Improvements to TLS certificate options
- Support for unit testing improvements with the introduction of optional
INatsMsg<T>
andINatsJSMsg<T>
interfaces.
What's Changed
- Watcher fix and API naming fix by @mtmk in #273
- Added info and stats to services by @mtmk in #274
- Added slow consumer events by @mtmk in #276
- Read certificates as PEM strings or from files by @caleblloyd in #283
- handle no responders in NatsSubBase by @caleblloyd in #277
- Create an INatsJSMsg interface by @mtmk in #266
Full Changelog: v2.0.2-preview.1...v2.0.2-preview.2
Big thanks to our contributors @stebet, @paulomf and @to11mtm. You all rock! 🥇
Breaking changes
- Renamed
INatsObjContext
CreateObjectStore()
method toCreateObjectStoreAsync()
- Slow consumers now will drop messages and raises an event when that happens. You can handle these events or if you need the old behaviour you can set
SubPendingChannelFullMode
toBoundedChannelFullMode.Wait
inNatsOpts
.
Give us a shout if you have any questions either on slack.nats.io dotnet channel or here on GitHub!
Don't forget to check out the documentation for guides and examples.
Happy coding! ❤️
Nuget Packages
NATS.Net
This is the main meta package containing all other packages except serialization.
dotnet add package NATS.Net --version 2.0.2-preview.2
If you are not deploying Native AOT you can also use ad-hoc JSON serialization:
dotnet add package NATS.Client.Serializers.Json --version 2.0.2-preview.2
Individual Packages
dotnet add package NATS.Client.Core --version 2.0.2-preview.2
dotnet add package NATS.Client.Hosting --version 2.0.2-preview.2
dotnet add package NATS.Client.JetStream --version 2.0.2-preview.2
dotnet add package NATS.Client.KeyValueStore --version 2.0.2-preview.2
dotnet add package NATS.Client.ObjectStore --version 2.0.2-preview.2
dotnet add package NATS.Client.Services --version 2.0.2-preview.2
dotnet add package NATS.Client.Serializers.Json --version 2.0.2-preview.2