Skip to content

Instantly share code, notes, and snippets.

@ealsur ealsur/run.csx
Created Feb 6, 2018

Embed
What would you like to do?
Azure Cosmos DB + Functions Cookbook - live migration run.csx
#r "Microsoft.Azure.Documents.Client"
using System;
using System.Collections.Generic;
using Microsoft.Azure.Documents;
public static async Task Run(IReadOnlyList<Document> input, IAsyncCollector<Document> docsToSave)
{
foreach(var doc in input){
// work with the document, process or create a new one
await docsToSave.AddAsync(doc);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.