Ejemplo n.º 1
0
 /// <summary>
 /// Close connections to the message broker.
 /// Remember to call this if your application repeatedly connects and disconnects
 /// </summary>
 public void Shutdown()
 {
     try { _longConnectionSingleton?.Dispose(); } catch { /*ignore*/ }
     try { _configuredConnection?.Dispose(); } catch { /*ignore*/ }
 }
Ejemplo n.º 2
0
 public void teardown()
 {
     _conn.Dispose();
 }