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
Abhijit Shrikhande 10Abhijit Shrikhande 10 

How to call a Salesforce REST service using C# in .NET 4.0?

I have been through the following document on developerforce.

https://developer.salesforce.com/page/Working_with_Custom_SOAP_and_REST_Services_in_.NET_Applications

I am trying to call a REST based service from a console application in . NET 4.0
The await keyword is not available in 4.0. I do not wish to cannot change my target framework to 4.5
So how do I go about making this code work with .NET 4.0?

Any help is appreciated. Thanks in advance.

 
@GM@GM
Are you able to find the solution?