Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created August 30, 2018 12:17
Embed
What would you like to do?
Main method to create the Azure Cosmos DB database, create and query Book objects
static async Task Main(string[] args)
{
ConfigureServices();
var service = Container.GetRequiredService<BooksService>();
await service.CreateTheDatabaseAsync();
await service.WriteBooksAsync();
service.ReadBooks();
Console.WriteLine("completed");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment