标签:amp 需要 sum 安全 connect 安全退出 icon event consumer
IConnection _connection = null;
IModel _channel = null;
EventingBasicConsumer _consumer = null;
if (null != _consumer && _consumer.IsRunning)
{
if (null != _channel) _channel.Close();
if (null != _connection) _connection.Close();
//这样就可以安全退出了
}
标签:amp 需要 sum 安全 connect 安全退出 icon event consumer
原文地址:https://www.cnblogs.com/liaojianwang/p/9395444.html