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