Created
October 20, 2022 21:13
-
-
Save ealsur/320fcda298d91c59507437a8e9649fd5 to your computer and use it in GitHub Desktop.
Azure Functions Trigger with custom type
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
[FunctionName("Function1")] | |
public static void Run([CosmosDBTrigger( | |
databaseName: "test", | |
containerName: "items", | |
LeaseContainerPrefix = "test", | |
Connection = "cosmosDB")] | |
IReadOnlyList<MyPOCOWithSystemTextJson> input, ILogger log) | |
{ | |
//... | |
} | |
public class MyPOCOWithSystemTextJson | |
{ | |
[JsonPropertyName("id")] | |
public string Id { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment