You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private static void Main(string[] args)
{
const string _natsUrl = "127.0.0.1:4221";
var connectionFactory = new NATS.Client.ConnectionFactory();
var connection = connectionFactory.CreateConnection(_natsUrl);
connection.Publish("PubSubTesting", ASCIIEncoding.UTF8.GetBytes("Testing!!"));
}
My console app will hang and not exit. If I change my code to dispose the connection object after Publish it will work. I assume something needs to override the finalizer and take some action to clean things up more gracefully in this case?
The text was updated successfully, but these errors were encountered:
If I run the following sample code:
My console app will hang and not exit. If I change my code to dispose the connection object after Publish it will work. I assume something needs to override the finalizer and take some action to clean things up more gracefully in this case?
The text was updated successfully, but these errors were encountered: