Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon COM /
avatar image
Question by theprogrambug · Jul 06, 2017 at 06:00 AM · eikoneikon-com-apieikon-.net-api

.NET APIs for window service

I tried run the example project "DataApiUsageExampleRealtimeData", everything is fine, but I rewrite it into window service, nothing was trigger in the "DataReceived" action.

singleRequest = realtime.Request("GBP=", "BID", DataReceived); 
singleSubscription = realtime.Subscribe("EUR=", "BID", DataReceived);

is this API can use in window service.??

Thanks for the answer.

People who like this

0 Show 3
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.

avatar image
REFINITIV
Zhenya Kovalyov ♦♦ · Jul 06, 2017 at 06:39 AM 0
Share

@theprogrambug Would you tell me please why you would need the API running as a windows service? What is your use case?

avatar image
theprogrambug Zhenya Kovalyov ♦♦ · Jul 06, 2017 at 10:51 PM 0
Share

the desktop application is easily close by user mistakenly, so it is better not showing the interface.

avatar image
REFINITIV
Alex Putkov.1 ♦♦ theprogrambug · Jul 07, 2017 at 12:07 AM 0
Share

For this purpose I would suggest a GUIless console application to be run in interactive Windows station rather than a Windows service.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov.1 · Jul 06, 2017 at 06:57 PM

Eikon .NET API was not designed for and has never been tested in Windows service applications. By design it has runtime dependency on Eikon application, which can only be used in interactive Windows station. You can try using this API in a Windows service, but there's no guarantee it will work. At the very least the service must be run in the context of the user's account who previously interactively launched Eikon, signed in and checked "Sign me in automatically" checkbox. There's absolutely no chance you can successfully use Eikon .NET API in a service run with LocalService, NetworkService or LocalSystem accounts. And even then I can foresee a bunch of issues that might prevent the service from being able to retrieve data from Eikon. Long story short you're better off not using Eikon .NET or COM APIs in Windows service applications.

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.

avatar image
Answer by seshagiriraokancherla · Jul 06, 2017 at 10:09 AM

Hi,

Me also getting same issue. When running this code in windows service datareceived event not firing. I tried by platform target x86, allow desktop interaction to windowsservice, but no luck. please reply asap, struggling from last week.

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.

avatar image
Answer by theprogrambug · Jul 06, 2017 at 10:57 PM

Thanks Alex, seems I better using desktop application

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 >
9 People are following this question.

Related Questions

Eikon API .NET 64 vs 32 bit

TimeSeries - SetupDataRequest - is there any way to setup a custom ID?

Ekion .Net API specific licence?

RDATA batch request with individual Sdate parameters

.NET API some questions

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • FX Venues
    • FX Trading – RFQ Maker
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges