Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
REFINITIV
Question by LtDoolittle6 · Jun 27, 2017 at 06:22 AM · rfa.netproviderrequesttoken

RFA.NET RequestToken question

We are using RFA.NET 8 develops Provider application and we use requestToken.GetHashCode() to log the requestTokens that the provider received from ADH. However sometime we see duplicated value from GetHashCode method while the first request received the same value still active. Currently we do not recieve any error in the provider but we would like to confirm that

-Is it possible for different Client session to create the same RequestToken ? and Is the RequestToken value unique across servers ?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by moragodkrit.chumsri_1 · Jun 27, 2017 at 06:34 AM

@Rupert Schilling

The Request Tokens are unique across client sessions. Actually GetHashCode method does not returns actual value of requestToken. RFA.NET keep the actual value in some internal variable. Howvever the duplicate value appears to be a collision in the getHashCode method.

RFA.NET RequestToken.GetHashCode() calls ((long)_RequestToken).ToString().GetHashCode(); which is .NET function to generate Hash Code. Based on the Note from MSDN, method ToString().GetHashCode() can generate collision value from difference string. It could be an issue mentioned in the document.

You should not use GetHashCode to differenciate RequestToken. If you found any issue after receive duplicate HashCode, please turn on RSSL logs and open ticket to API support to investigate issue further.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
7 People are following this question.

Related Questions

OMM Provider Application Crashes Periodically When Sending Status Message

Failing get FX Prices using RFA

.Net System.AccessViolationException when calling OMMProvider.Submit on a RespMsg containing a status.

ThomsonReuters.RFA.Data.Real conversion to decimal

RFA .NET Level 2 data subscription

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges