views:

267

answers:

0

I have ported a few bits of code from C++ to C# - everything seems to be working, though I am not satisfied with my work since I have skipped over a few things which were in a C++ version - but I am not sure how to do that in a C# version.

Basically the difference is that C++ and C# wrappers for IBM MQ series has a slightly different object model (field here, method there) and I was unable to find how to:

  1. Set a heartbeat interval, which could be done in a C++ version by calling the setHeartbeatInterval methon on a channel object, seems like in a C# version (amqmdnet.dll .NET assembly) MQChannel object does not have a similar method or a property.

  2. Set a transport type for a channel. The same as with previous method - C++ version has a setTransportType method on a channel object, while C# version lacks it.

I would appreciate any help with the above. Thank you.