function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kovair.sandipkovair.sandip 

Streaming API using C#.net

How can I create .net client using C# for streaming API

SuperfellSuperfell

You'll need to find a CometD library for .NET, try this one https://github.com/Oyatel/CometD.NET

Luis ForeroLuis Forero
Did you manage to accomplish this?
Luis ForeroLuis Forero
I'have finish an example, If any one wants to take a look its here https://github.com/foluis/Salesforce_PushTopics
 
scott.escott.e
Thanks Luis, your example helped me out.  I got caught out like a few others on the LongPollingTransport issue within cometd.  I'll point this toward the solution that worked for me:  https://github.com/foluis/Salesforce_PushTopics/issues/1
Stefan WöhrerStefan Wöhrer
To make it very explicit: The connection to Salesforce Streaming API and Salesforce Platform Events works with the following setup: I tested it with API library 41.0
Jordy De BlockJordy De Block

Hi guys,

I was wondering what the value of the string loginEndpoint = ConfigurationManager.AppSettings["loginEndpoint"]; should be?

I'm trying to authorize but always get redirected to the login page.

Thanks.

Stefan WöhrerStefan Wöhrer
Hi,
depending on where you want to authenticate against, the loginEndpoint is:
  • For Production or Developer environments: https://login.salesforce.com/services/oauth2/token
  • For Test environments: https://test.salesforce.com/services/oauth2/token
Cheers,
Steve