nats.net
nats.net copied to clipboard
Add Reconnect API
Add an API to trigger a reconnect.
Just Reconnect:
IConnection.Reconnect();
Reconnect and Replace URLs:
IConnection.Reconnect(string newUrls);
IConnection.Reconnect(string []urls);
Is this intended to be synchronous or asynchronous? I'd suggest including ReconnectAsync
as well.
Good idea, could provide Task<IConnection> IConnection.ReconnectAsync();
and overloads...