Skip to content

Instantly share code, notes, and snippets.

@ealsur ealsur/Trigger.cs
Last active Feb 15, 2019

Embed
What would you like to do?
Azure Cosmos DB + Functions Cookbook - monitoring - trigger
[FunctionName("Trigger")]
public static void Trigger([CosmosDBTrigger(
databaseName: "%MonitoredDatabase%",
collectionName: "%MonitoredCollection%",
ConnectionStringSetting = "CosmosDB",
LeaseCollectionPrefix = "%MonitoredDatabaseLeasePrefix%",
LeaseCollectionName = "leases",
CreateLeaseCollectionIfNotExists = true)] IReadOnlyList<Document> documents,
ILogger log)
{
// Do something with the documents
}
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.