github nats-io/nats.net v2.1.4
NATS .NET v2.1.4

latest releases: v2.5.4, v2.5.3, v2.5.2...
8 months ago

This is a bug fix release version 2.1.4 of NATS .NET client library. Please also see the potentially breaking change below.

What's Changed

New Contributors

Full Changelog: v2.1.3...v2.1.4

Breaking Change

Because of the way the serialization errors are handled after the change #407 you might see different behaviour in application where serialization errors were potentially not propagated or logged. With this change application code now can check if there were any serialization errors before processing the message:

    // Also similar in JetStream consumers and Key/Value watchers
    await foreach (var msg in nats.SubscribeAsync<MyEvent>("events.>"))
    {
        if (msg.Error != null)
        {
            // handle serialization error
        }
        else
        {
            // process message
        }
    }

Nuget Package

dotnet add package NATS.Net --version 2.1.4

Don't miss a new nats.net release

NewReleases is sending notifications on new releases.