Author Topic: How to retrieve EventInfo value based on the event's reference ID  (Read 3057 times)

Offline Alyw

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
I sent two request statistic info and received two EventInfo as shown below:

    'EventInfo' ('2')
    message attributes:
    REQ_ID [int]    = 402
    USER_REQ_ID [int] = 0
    TM_SERVER [int] = 1440495548
    TM_LENGTH [int] = 1285
    LONG_VALUE [int] = 0
    STRING_VALUE [str] = "123"

    'EventInfo' ('2')
    message attributes:
    REQ_ID [int]    = 301
    USER_REQ_ID [int] = 0
    TM_SERVER [int] = 1440495553
    TM_LENGTH [int] = 1290
    LONG_VALUE [int] = 0
    STRING_VALUE [str] = "456"

I can retrieve the event's ReferenceID as well as the StringValue (which is the value that I want), but how can I retrieve the StringValue based on the event's ReferenceID?

Perhaps there is something similar to this:
Genesyslab.Platform.Reporting.Protocols.StatServer.Events.EventInfo eventInfo =      (Genesyslab.Platform.Reporting.Protocols.StatServer.Events.EventInfo)eventResponse;
string value = eventInfo.ReferenceID(402).StringValue; //Wrong statement, hope to find something similar to this


Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: How to retrieve EventInfo value based on the event's reference ID
« Reply #1 on: August 26, 2015, 01:36:48 PM »
You can't, you just have to handle each EventInfo as it happens..