I'm attempting to call Pause on the entire ommConsumer as opposed to a single symbol. I've tried using the login handle as well as the omm connection hanle, but in both cases I get an Invalid Usage Exception with the following message:
OMMConsumer::reissueClient() has been called with a different domain type than that of the original request message.
I don't know how to interpret this message (what is a domain type and why would it be different from the original request message)
Below is my code. Any suggestions? Thanks.
public void Pause()
{
ReqMsg reqMsg = new ReqMsg();
reqMsg.MsgModelType = RDM.MESSAGE_MODEL_TYPES.MMT_MARKET_PRICE;
reqMsg.InteractionType = ReqMsg.InteractionTypeFlag.Pausse;
OMMItemIntSpec ommItemIntSpec = new OMMItemIntSpec();
ommItemIntSpec.Msg = reqMsg;
try
{
ommConsumer.ReissueClient(ommConnIntSpecHandle, ommItemIntSpec);
log.Debug("Request to pause feed service sent");
}
catch(ThomsonReuters.RFA.Common.InvalidUsageException e)
{
log.Error(e.Message);
}
}