Skip to content

NATS.Net v2.0.2-preview.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@mtmk mtmk released this 13 Dec 07:43
· 222 commits to main since this release
686e6d7

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> and INatsJSMsg<T> interfaces.

What's Changed

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 to CreateObjectStoreAsync()
  • 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 to BoundedChannelFullMode.Wait in NatsOpts.

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