Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get self link cosmosdb
string selfLink = client.CreateDocumentCollectionQuery(UriFactory.CreateDatabaseUri(config["CosmosDB_DatabaseId"]))
.Where(c => c.Id == config["CosmosDB_ContainerId"])
.AsEnumerable()
.FirstOrDefault()
.SelfLink;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment