Skip to content

Commit 1630cfa

Browse files
Merge pull request #304513 from ggailey777/patch-4
[Functions] Fix isolated C# examples offsets
2 parents 00a7b37 + 2e501de commit 1630cfa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 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: 04/02/2023
5+
ms.date: 08/20/2025
66
ms.devlang: csharp
77
# ms.devlang: csharp, java, javascript, powershell, python
88
ms.custom: devx-track-csharp, fasttrack-edit, devx-track-python, devx-track-extended-java, devx-track-js, devx-track-ts
@@ -44,11 +44,11 @@ The type of the input parameter used with an Event Grid trigger depends on these
4444

4545
When running your C# function in an isolated worker process, you need to define a custom type for event properties. The following example defines a `MyEventType` class.
4646

47-
:::code language="csharp" source="~/azure-functions-dotnet-worker/samples/Extensions/EventGrid/EventGridFunction.cs" range="35-48":::
47+
:::code language="csharp" source="~/azure-functions-dotnet-worker/samples/Extensions/EventGrid/EventGridFunction.cs" range="33-45":::
4848

4949
The following example shows how the custom type is used in both the trigger and an Event Grid output binding:
5050

51-
:::code language="csharp" source="~/azure-functions-dotnet-worker/samples/Extensions/EventGrid/EventGridFunction.cs" range="11-33":::
51+
:::code language="csharp" source="~/azure-functions-dotnet-worker/samples/Extensions/EventGrid/EventGridFunction.cs" range="11-29":::
5252

5353
# [In-process model](#tab/in-process)
5454

@@ -342,7 +342,7 @@ Both [in-process](functions-dotnet-class-library.md) and [isolated worker proces
342342

343343
Here's an `EventGridTrigger` attribute in a method signature:
344344

345-
:::code language="csharp" source="~/azure-functions-dotnet-worker/samples/Extensions/EventGrid/EventGridFunction.cs" range="13-16":::
345+
:::code language="csharp" source="~/azure-functions-dotnet-worker/samples/Extensions/EventGrid/EventGridFunction.cs" range="11-14":::
346346

347347
# [In-process model](#tab/in-process)
348348

0 commit comments

Comments
 (0)