Example #1
0
 void ActiveForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     // 在应用退出前,必须销毁 Producer 对象,否则会导致内存泄露等问题;
     // shutdown 之后不能重新 start 此 producer
     producer.shutdown();
 }
Example #2
0
 public override void Shutdown()
 {
     producer.shutdown();
 }