A .NET SDK for Orchestrate.io
To install Orchestrate.Io .NET SDK, run the following command in the Package Manager Console
PM> Install-Package orchestrate.io -Pre
Requires NuGet 2.8.5 or higher
Usage examples
// Import the client
using Orchestrate.Io
// Create an Application
var application = new Application("Your API Key");
// Create a Client
var client = new Client(application);
// Get a Collection
var collection = client.GetCollection("Collection Name");
// Get a value
var kvObject = await collection.GetAsync<dynamic>("Key");
var dynamicValue = kvObject.Value;
// Add a value
var product = new Product { /* .... */ };
var kvMetaData = await collection.AddAsync(product);
// Add a value, specifying the key
var product = new Product { /* .... */ };
var kvMetaData = await collection.TryAddAsync("Key", product);
// List items in a collection
var listResults = await collection.ListAsync<Product>();
foreach(Product product in listResults)
{
/* work on the specific product */
}