SalesforceSdk is a .NET implementation of the Salesforce API.
If you want to include SalesforceSdk in your project, you can install it directly from NuGet
To install SalesforceSdk, run the following command in the Package Manager Console
PM> Install-Package AWJ.SalesforceSdk
var username = ConfigurationManager.AppSettings["Username"];
var password = ConfigurationManager.AppSettings["Password"];
var clientId = ConfigurationManager.AppSettings["ClientId"];
var clientSecret = ConfigurationManager.AppSettings["ClientSecret"];
var sandbox = ConfigurationManager.AppSettings["Sandbox"];
using (var client = new BulkApiClient()
{
Username = username,
Password = password,
ClientId = clientId,
ClientSecret = clientSecret,
IsSandbox = sandbox != null && sandbox == "true"
})
{
if (client.Login())
{
var allJobs = client.GetAllJobs();
}
}