private void MessageHandler(object sender, MessageEventArg messageArg)
 {
     if (this.State.State != HandlerState.Operational)
     return;
       if ((messageArg.DataSetId) != DataSetId.DataSetWriterId || (messageArg.ProducerId != DataSetId.PublisherId))
     return;
       messageArg.MessageContent.UpdateMyValues(x => m_DataSetBindings[x], m_DataSetBindings.Length);
 }
 private void MessageHandler(object sender, MessageEventArg messageArg)
 {
     if (this.State.State != HandlerState.Operational)
     {
         return;
     }
     if ((messageArg.DataSetId) != DataSetId.DataSetWriterId || (messageArg.ProducerId != DataSetId.PublisherId))
     {
         return;
     }
     messageArg.MessageContent.UpdateMyValues(x => m_DataSetBindings[x], m_DataSetBindings.Length);
 }
Example #3
0
 private void MessageHandler(object sender, MessageEventArg messageArg)
 {
     //TODO ConsumerAssociation - skip message if not operational #133
     if (this.State.State != HandlerState.Operational)
     {
         return;
     }
     //TODO Skip message if no one is interested to process it #135
     //TODO How to configure ProducerId #148
     if ((messageArg.DataSetId) != DataSetId.DataSetWriterId || (messageArg.ProducerId != DataSetId.PublisherId))
     {
         return;
     }
     messageArg.MessageContent.UpdateMyValues(x => m_DataSetBindings[x], m_DataSetBindings.Length);
 }