|
Hi, |
Replies: 2 comments 1 reply
|
hi @moojek thanks, good question. they come from different packages.
I'll review and update the documentation (I think we did for the 3.x series but I shall double check) |
|
Hi, As for the topic of documentation, I use this: https://nats-io.github.io/nats.net/documentation/intro.html?tabs=core-nats. Is it the current one? Can I find something about this topic there or you mean it will be added in some upcoming release? |
hi @moojek thanks, good question. they come from different packages.
AddNatsClient(NATS.Extensions.Microsoft.DependencyInjection) is the one to use for most apps. It enables ad-hoc JSON serialization and registers the basicINatsClientas well asINatsConnection. I suggest this one if you don't have AOT requirement for example.AddNats(NATS.Client.Hosting) is the minimal-dependency, AOT-friendly option. It does not register the ad hoc JSON serializer norINatsClient. If you are keeping your dependencies very tight and/or using AOT deployments, this one is to use. it might be less user friendly is some ways.I'll review and update the documentation (I think we did for the 3.x series but …