2
2
title : Azure Event Grid trigger for Azure Functions
3
3
description : Learn to run code when Event Grid events in Azure Functions are dispatched.
4
4
ms.topic : reference
5
- ms.date : 03/ 04/2022
5
+ ms.date : 04/02/2023
6
6
ms.devlang : csharp, java, javascript, powershell, python
7
7
ms.custom : " devx-track-csharp, fasttrack-edit, devx-track-python"
8
8
zone_pivot_groups : programming-languages-set-functions-lang-workers
@@ -31,7 +31,7 @@ The type of the input parameter used with an Event Grid trigger depends on these
31
31
32
32
# [ In-process] ( #tab/in-process )
33
33
34
- The following example shows a Functions version 3 .x function that uses a ` CloudEvent ` binding parameter:
34
+ The following example shows a Functions version 4 .x function that uses a ` CloudEvent ` binding parameter:
35
35
36
36
``` cs
37
37
using Azure .Messaging ;
@@ -54,11 +54,11 @@ namespace Company.Function
54
54
}
55
55
```
56
56
57
- The following example shows a Functions version 3 .x function that uses an ` EventGridEvent ` binding parameter:
57
+ The following example shows a Functions version 4 .x function that uses an ` EventGridEvent ` binding parameter:
58
58
59
59
``` cs
60
60
using Microsoft .Azure .WebJobs ;
61
- using Microsoft . Azure .EventGrid . Models ;
61
+ using Azure .Messaging . EventGrid ;
62
62
using Microsoft .Azure .WebJobs .Extensions .EventGrid ;
63
63
using Microsoft .Extensions .Logging ;
64
64
@@ -80,7 +80,6 @@ The following example shows a function that uses a `JObject` binding parameter
80
80
``` cs
81
81
using Microsoft .Azure .WebJobs ;
82
82
using Microsoft .Azure .WebJobs .Extensions .EventGrid ;
83
- using Microsoft .Azure .WebJobs .Host ;
84
83
using Newtonsoft .Json ;
85
84
using Newtonsoft .Json .Linq ;
86
85
using Microsoft .Extensions .Logging ;
0 commit comments