refactor: NatsClient accepts Stream parameter for TLS support

This commit is contained in:
Joseph Doherty
2026-02-22 22:09:48 -05:00
parent 1a777e09c9
commit a26c1359de
3 changed files with 6 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ public class ClientTests : IAsyncDisposable
Port = 4222,
};
_natsClient = new NatsClient(1, _serverSocket, new NatsOptions(), serverInfo, NullLogger.Instance, new ServerStats());
_natsClient = new NatsClient(1, new NetworkStream(_serverSocket, ownsSocket: false), _serverSocket, new NatsOptions(), serverInfo, NullLogger.Instance, new ServerStats());
}
public async ValueTask DisposeAsync()