/// <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*/ } }
public void teardown() { _conn.Dispose(); }