Skip to content

Commit de3e799

Browse files
committed
fix tabs
1 parent 7bc9ce4 commit de3e799

File tree

3 files changed

+77
-35
lines changed

3 files changed

+77
-35
lines changed

includes/functions-bindings-event-hubs.md

Lines changed: 44 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ ms.author: wujia
1111

1212
The extension NuGet package you install depends on the C# mode you're using in your function app:
1313

14-
# [Isolated worker model](#tab/isolated-process)
14+
### [Isolated worker model](#tab/isolated-process)
1515

1616
Functions execute in an isolated C# worker process. To learn more, see [Guide for running C# Azure Functions in an isolated worker process](../articles/azure-functions/dotnet-isolated-process-guide.md).
1717

18-
# [In-process model](#tab/in-process)
18+
### [In-process model](#tab/in-process)
1919

2020
[!INCLUDE [functions-in-process-model-retirement-note](./functions-in-process-model-retirement-note.md)]
2121

@@ -27,43 +27,61 @@ In a variation of this model, Functions can be run using [C# scripting], which i
2727

2828
The functionality of the extension varies depending on the extension version:
2929

30-
# [Extension v5.x+](#tab/extensionv5/in-process)
30+
### [Extension v6.x+](#tab/extensionv6/in-process)
3131

3232
_This section describes using a [class library](../articles/azure-functions/functions-dotnet-class-library.md). For [C# scripting], you would need to instead [install the extension bundle][Update your extensions], version 4.x._
3333

3434
[!INCLUDE [functions-bindings-supports-identity-connections-note](functions-bindings-supports-identity-connections-note.md)]
3535

3636
This version uses the newer Event Hubs binding type [Azure.Messaging.EventHubs.EventData](/dotnet/api/azure.messaging.eventhubs.eventdata).
3737

38+
This extension version is available by installing the [NuGet package], version 6.x.
39+
40+
### [Extension v5.x](#tab/extensionv5/in-process)
41+
42+
_This section describes using a [class library](../articles/azure-functions/functions-dotnet-class-library.md). For [C# scripting], you would need to instead [install the extension bundle][Update your extensions], version 3.x or later._
43+
44+
[!INCLUDE [functions-bindings-supports-identity-connections-note](functions-bindings-supports-identity-connections-note.md)]
45+
46+
This version uses the newer Event Hubs binding type [Azure.Messaging.EventHubs.EventData](/dotnet/api/azure.messaging.eventhubs.eventdata).
47+
3848
This extension version is available by installing the [NuGet package], version 5.x.
3949

40-
# [Extension v3.x+](#tab/extensionv3/in-process)
50+
### [Extension v3.x+](#tab/extensionv3/in-process)
4151

4252
_This section describes using a [class library](../articles/azure-functions/functions-dotnet-class-library.md). For [C# scripting], you would need to instead [install the extension bundle][Update your extensions], version 2.x._
4353

4454
Supports the original Event Hubs binding parameter type of [Microsoft.Azure.EventHubs.EventData](/dotnet/api/microsoft.azure.eventhubs.eventdata).
4555

4656
Add the extension to your project by installing the [NuGet package], version 3.x or 4.x.
4757

48-
# [Functions v1.x](#tab/functionsv1/in-process)
58+
### [Functions v1.x](#tab/functionsv1/in-process)
4959

5060
[!INCLUDE [functions-runtime-1x-retirement-note](./functions-runtime-1x-retirement-note.md)]
5161

5262
Version 1.x of the Functions runtime doesn't require an extension.
5363

54-
# [Extension v5.x+](#tab/extensionv5/isolated-process)
64+
### [Extension v6.x+](#tab/extensionv6/isolated-process)
65+
66+
[!INCLUDE [functions-bindings-supports-identity-connections-note](functions-bindings-supports-identity-connections-note.md)]
67+
68+
This version supports configuration of triggers and bindings through [.NET Aspire integration](../articles/azure-functions/dotnet-aspire-integration.md#connection-configuration-with-aspire).
69+
70+
Add the extension to your project by installing the [NuGet package](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.EventHubs), version 6.x.
71+
72+
### [Extension v5.x](#tab/extensionv5/isolated-process)
5573

5674
[!INCLUDE [functions-bindings-supports-identity-connections-note](functions-bindings-supports-identity-connections-note.md)]
5775

5876
This version supports configuration of triggers and bindings through [.NET Aspire integration](../articles/azure-functions/dotnet-aspire-integration.md#connection-configuration-with-aspire).
5977

6078
Add the extension to your project by installing the [NuGet package](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.EventHubs), version 5.x.
6179

62-
# [Extension v3.x+](#tab/extensionv3/isolated-process)
80+
### [Extension v3.x+](#tab/extensionv3/isolated-process)
6381

6482
Add the extension to your project by installing the [NuGet package](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.EventHubs), version 4.x.
6583

66-
# [Functions v1.x](#tab/functionsv1/isolated-process)
84+
### [Functions v1.x](#tab/functionsv1/isolated-process)
6785

6886
Version 1.x of the Functions runtime doesn't support running in an isolated worker process.
6987

@@ -77,7 +95,7 @@ Version 1.x of the Functions runtime doesn't support running in an isolated work
7795

7896
The Event Hubs extension is part of an [extension bundle], which is specified in your host.json project file. You may need to modify this bundle to change the version of the binding, or if bundles aren't already installed. To learn more, see [extension bundle].
7997

80-
# [Bundle v4.x](#tab/extensionv5)
98+
# [Bundle v4.x](#tab/extensionv6)
8199

82100
[!INCLUDE [functions-bindings-supports-identity-connections-note](functions-bindings-supports-identity-connections-note.md)]
83101

@@ -115,7 +133,7 @@ Version 1.x of the Functions runtime doesn't require extension bundles.
115133

116134
The binding types supported for .NET depend on both the extension version and C# execution mode, which can be one of the following options:
117135

118-
# [Isolated worker model](#tab/isolated-process)
136+
### [Isolated worker model](#tab/isolated-process)
119137

120138
An isolated worker process class library compiled C# function runs in a process isolated from the runtime.
121139

@@ -128,34 +146,29 @@ An in-process class library is a compiled C# function runs in the same process a
128146

129147
Choose a version to see binding type details for the mode and version.
130148

131-
# [Extension v5.x+](#tab/extensionv5/in-process)
149+
### [Extension v6.x+](#tab/extensionv6/in-process)
132150

133-
The Event Hubs extension supports parameter types according to the table below.
151+
[!INCLUDE [functions-event-hubs-extensionv5-inproc](functions-event-hubs-extension-v5-in-proc.md)]
134152

135-
Binding scenario | Parameter types |
136-
|-|-|
137-
| Event Hubs trigger (single event) | [Azure.Messaging.EventHubs.EventData]<br/>JSON serializable types<sup>1</sup><br/>`string`<br/>`byte[]`<br/>[BinaryData] |
138-
| Event Hubs trigger (batch of events) | `EventData[]`<br/>`string[]` |
139-
| Event Hubs output (single event) | [Azure.Messaging.EventHubs.EventData]<br/>JSON serializable types<sup>1</sup><br/>`string`<br/>`byte[]`<br/>[BinaryData]|
140-
| Event Hubs output (multiple events) | `ICollector<T>` or `IAsyncCollector<T>` where `T` is one of the single event types |
153+
### [Extension v5.x](#tab/extensionv5/in-process)
141154

142-
<sup>1</sup> Events containing JSON data can be deserialized into known plain-old CLR object (POCO) types.
155+
[!INCLUDE [functions-event-hubs-extensionv5-inproc](functions-event-hubs-extension-v5-in-proc.md)]
143156

144-
# [Extension v3.x+](#tab/extensionv3/in-process)
157+
### [Extension v3.x+](#tab/extensionv3/in-process)
145158

146159
Earlier versions of the extension exposed types from the now deprecated [Microsoft.Azure.EventHubs] namespace. Newer types from [Azure.Messaging.EventHubs] are exclusive to **Extension v5.x+**.
147160

148161
This version of the extension supports parameter types according to the table below.
149162

150-
Binding scenario | Parameter types |
163+
| Binding scenario | Parameter types |
151164
|-|-|
152165
| Event Hubs trigger (single message) | [Microsoft.Azure.EventHubs.EventData]<br/>JSON serializable types<sup>1</sup><br/>`string`<br/>`byte[]` |
153166
| Event Hubs trigger (batch) | `EventData[]`<br/>`string[]` |
154167
| Event Hubs output | [Microsoft.Azure.EventHubs.EventData]<br/>JSON serializable types<sup>1</sup><br/>`string`<br/>`byte[]` |
155168

156169
<sup>1</sup> Events containing JSON data can be deserialized into known plain-old CLR object (POCO) types.
157170

158-
# [Functions v1.x](#tab/functionsv1/in-process)
171+
### [Functions v1.x](#tab/functionsv1/in-process)
159172

160173
Earlier versions of the extension exposed types from the now deprecated [Microsoft.Azure.EventHubs] namespace. Newer types from [Azure.Messaging.EventHubs] are exclusive to **Extension v5.x+**.
161174

@@ -169,23 +182,19 @@ This version of the extension supports parameter types according to the table be
169182

170183
<sup>1</sup> Events containing JSON data can be deserialized into known plain-old CLR object (POCO) types.
171184

172-
# [Extension v5.x+](#tab/extensionv5/isolated-process)
173-
174-
The isolated worker process supports parameter types according to the tables below. Support for binding to types from [Azure.Messaging.EventHubs] is in preview.
185+
### [Extension v6.x+](#tab/extensionv6/isolated-process)
175186

176-
**Event Hubs trigger**
187+
[!INCLUDE [functions-event-hubs-extensionv5-isolated](functions-event-hubs-extensionv5-isolated.md)]
177188

178-
[!INCLUDE [functions-bindings-event-hubs-trigger-dotnet-isolated-types](./functions-bindings-event-hubs-trigger-dotnet-isolated-types.md)]
189+
### [Extension v5.x](#tab/extensionv5/isolated-process)
179190

180-
**Event Hubs output binding**
191+
[!INCLUDE [functions-event-hubs-extensionv5-isolated](functions-event-hubs-extensionv5-isolated.md)]
181192

182-
[!INCLUDE [functions-bindings-event-hubs-output-dotnet-isolated-types](./functions-bindings-event-hubs-output-dotnet-isolated-types.md)]
183-
184-
# [Extension v3.x+](#tab/extensionv3/isolated-process)
193+
### [Extension v3.x+](#tab/extensionv3/isolated-process)
185194

186195
Earlier versions of the extension in the isolated worker process only support binding to strings and JSON serializable types. More options are available to **Extension v5.x+**.
187196

188-
# [Functions v1.x](#tab/functionsv1/isolated-process)
197+
### [Functions v1.x](#tab/functionsv1/isolated-process)
189198

190199
Functions version 1.x doesn't support the isolated worker process. To use the isolated worker model, [upgrade your application to Functions 4.x].
191200

@@ -203,7 +212,7 @@ Functions version 1.x doesn't support the isolated worker process. To use the is
203212

204213
The [host.json](../articles/azure-functions/functions-host-json.md#eventhub) file contains settings that control behavior for the Event Hubs trigger. The configuration is different depending on the extension version.
205214

206-
# [Extension v5.x+](#tab/extensionv5)
215+
### [Extension v5.x/v6.x+](#tab/extensionv5+extensionv6)
207216

208217
```json
209218
{
@@ -262,7 +271,7 @@ The `clientRetryOptions` are used to retry operations between the Functions host
262271

263272
For a reference of host.json in Azure Functions 2.x and beyond, see [host.json reference for Azure Functions](../articles/azure-functions/functions-host-json.md).
264273

265-
# [Extension v3.x+](#tab/extensionv3)
274+
### [Extension v3.x+](#tab/extensionv3)
266275

267276
```json
268277
{
@@ -295,7 +304,7 @@ For a reference of host.json in Azure Functions 2.x and beyond, see [host.json r
295304

296305
For a reference of host.json in Azure Functions 2.x and beyond, see [host.json reference for Azure Functions](../articles/azure-functions/functions-host-json.md).
297306

298-
# [Functions v1.x](#tab/functionsv1)
307+
### [Functions v1.x](#tab/functionsv1)
299308

300309
```json
301310
{
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
author: ggailey777
3+
ms.service: azure-functions
4+
ms.topic: include
5+
ms.date: 05/07/2025
6+
ms.author: glenga
7+
---
8+
The Event Hubs extension supports parameter types according to the table below.
9+
10+
| Binding scenario | Parameter types |
11+
|-|-|
12+
| Event Hubs trigger (single event) | [Azure.Messaging.EventHubs.EventData]<br/>JSON serializable types<sup>1</sup><br/>`string`<br/>`byte[]`<br/>[BinaryData] |
13+
| Event Hubs trigger (batch of events) | `EventData[]`<br/>`string[]` |
14+
| Event Hubs output (single event) | [Azure.Messaging.EventHubs.EventData]<br/>JSON serializable types<sup>1</sup><br/>`string`<br/>`byte[]`<br/>[BinaryData]|
15+
| Event Hubs output (multiple events) | `ICollector<T>` or `IAsyncCollector<T>` where `T` is one of the single event types |
16+
17+
<sup>1</sup> Events containing JSON data can be deserialized into known plain-old CLR object (POCO) types.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
author: ggailey777
3+
ms.service: azure-functions
4+
ms.topic: include
5+
ms.date: 05/07/2025
6+
ms.author: glenga
7+
---
8+
The isolated worker process supports parameter types according to the tables below. Support for binding to types from [Azure.Messaging.EventHubs] is in preview.
9+
10+
**Event Hubs trigger**
11+
12+
[!INCLUDE [functions-bindings-event-hubs-trigger-dotnet-isolated-types](./functions-bindings-event-hubs-trigger-dotnet-isolated-types.md)]
13+
14+
**Event Hubs output binding**
15+
16+
[!INCLUDE [functions-bindings-event-hubs-output-dotnet-isolated-types](./functions-bindings-event-hubs-output-dotnet-isolated-types.md)]

0 commit comments

Comments
 (0)