Created
October 9, 2017 19:01
-
-
Save JeremyLikness/8bf3d2d79143b7a8cfaf1fe4a953f997 to your computer and use it in GitHub Desktop.
Create a document to write to CosmosDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // cosmos DB | |
| doc = new ExpandoObject(); | |
| doc.id = Guid.NewGuid().ToString(); | |
| doc.page = page; | |
| doc.count = 1; | |
| doc.timestamp = date; | |
| if (!string.IsNullOrWhiteSpace(customEvent)) | |
| { | |
| ((IDictionary<string, object>)doc).Add(customEvent, 1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment