Skip to content

Instantly share code, notes, and snippets.

@sajeetharan
Last active June 18, 2019 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sajeetharan/80c87e46cf2969eb11c3c4971f6759ac to your computer and use it in GitHub Desktop.
Save sajeetharan/80c87e46cf2969eb11c3c4971f6759ac to your computer and use it in GitHub Desktop.
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