/// <summary> /// 代理TransactionProducer实例的start方法 /// </summary> public void start() { if (_producer != null) { _producer.start(); } }
private void Form1_Load(object sender, EventArgs e) { factoryInfo = new ONSFactoryProperty(); factoryInfo.setFactoryProperty(ONSFactoryProperty.AccessKey, Ons_AccessKey); factoryInfo.setFactoryProperty(ONSFactoryProperty.SecretKey, Ons_SecretKey); factoryInfo.setFactoryProperty(ONSFactoryProperty.ProducerId, Ons_ProducerId); //factoryInfo.setFactoryProperty(ONSFactoryProperty.ConsumerId, Ons_ConsumerId); factoryInfo.setFactoryProperty(ONSFactoryProperty.PublishTopics, Ons_Topic); factoryInfo.setFactoryProperty(ONSFactoryProperty.LogPath, "D://log/rocketmq/producer"); LocalTransactionChecker myChecker = new MyLocalTransactionChecker(); producer = ONSFactory.getInstance().createTransactionProducer(factoryInfo, myChecker); producer.start(); }
public override void Start() { producer.start(); }
public void InitializeOrderProducer() { myChecker = new MyLocalTransactionChecker(); transactionProducer = ONSFactory.getInstance().createTransactionProducer(factoryInfo, myChecker); transactionProducer.start(); }
/// <summary> /// 代理TransactionProducer实例的start方法 /// </summary> public void start() { _producer.start(); }