nats-io/nats.net.v2

Support Keyed DI services in .NET 8

Closed this issue · 2 comments

A user may want to configure multiple INatsConnection in DI, and .NET 8 allows for specifying Keyed DI Services

Add optional param to take key for .AddNats

I took an initial stab at this here. I don't have a proper setup to run the test suite, but it did pass my pseudo-test via console app.

mtmk commented

That looks good @rickdotnet please feel free open a PR 💯

I don't have a proper setup to run the test suite

fyi, you only need a nats-server.exe in your PATH. All of the tests would run in isolation.