Skip to content

Commit 24b408a

Browse files
authored
(Azure CXP) v3 is reached EOL
resolves MicrosoftDocs/azure-docs#104688
1 parent 03ffbfe commit 24b408a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

articles/azure-functions/functions-bindings-event-grid-trigger.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Azure Event Grid trigger for Azure Functions
33
description: Learn to run code when Event Grid events in Azure Functions are dispatched.
44
ms.topic: reference
5-
ms.date: 03/04/2022
5+
ms.date: 04/02/2023
66
ms.devlang: csharp, java, javascript, powershell, python
77
ms.custom: "devx-track-csharp, fasttrack-edit, devx-track-python"
88
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
3131

3232
# [In-process](#tab/in-process)
3333

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:
3535

3636
```cs
3737
using Azure.Messaging;
@@ -54,11 +54,11 @@ namespace Company.Function
5454
}
5555
```
5656

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:
5858

5959
```cs
6060
using Microsoft.Azure.WebJobs;
61-
using Microsoft.Azure.EventGrid.Models;
61+
using Azure.Messaging.EventGrid;
6262
using Microsoft.Azure.WebJobs.Extensions.EventGrid;
6363
using Microsoft.Extensions.Logging;
6464

@@ -80,7 +80,6 @@ The following example shows a function that uses a `JObject` binding parameter
8080
```cs
8181
using Microsoft.Azure.WebJobs;
8282
using Microsoft.Azure.WebJobs.Extensions.EventGrid;
83-
using Microsoft.Azure.WebJobs.Host;
8483
using Newtonsoft.Json;
8584
using Newtonsoft.Json.Linq;
8685
using Microsoft.Extensions.Logging;

0 commit comments

Comments
 (0)