Skip to content

Commit 1e90bbc

Browse files
committed
Swaps in the include folder
1 parent 6879a62 commit 1e90bbc

6 files changed

+41
-41
lines changed

includes/functions-add-output-binding-example-all-languages.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ ms.author: glenga
88

99
The following example shows the function definition after adding a [Queue Storage output binding](../articles/azure-functions/functions-bindings-storage-queue-output.md) to an [HTTP triggered function](../articles/azure-functions/functions-bindings-http-webhook-trigger.md):
1010
::: zone pivot="programming-language-csharp"
11-
### [In-process](#tab/in-process)
12-
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-cli/HttpExample.cs" range="14-18" highlight="4":::
13-
1411
### [Isolated process](#tab/isolated-process)
1512
Because an HTTP triggered function also returns an HTTP response, the function returns a `MultiResponse` object, which represents both the HTTP and queue output.
1613

@@ -20,6 +17,9 @@ This example is the definition of the `MultiResponse` object that includes the o
2017

2118
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-isolated/HttpExample.cs" range="33-38" highlight="3":::
2219

20+
### [In-process](#tab/in-process)
21+
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-cli/HttpExample.cs" range="14-18" highlight="4":::
22+
2323
---
2424
Messages are sent to the queue when the function completes. The way you define the output binding depends on your process model. For more information, including links to example binding code that you can refer to, see [Add bindings to a function](../articles/azure-functions/add-bindings-existing-function.md?tabs=csharp#manually-add-bindings-based-on-examples).
2525
::: zone-end

includes/functions-add-storage-binding-csharp-library-code.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ ms.author: glenga
77
ms.custom: devdivchpfy22
88
---
99

10+
# [Isolated worker model](#tab/isolated-process)
11+
12+
Replace the existing `HttpExample` class with the following code:
13+
14+
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-isolated/HttpExample.cs" range="11-32":::
15+
1016
# [In-process model](#tab/in-process)
1117

1218
Add code that uses the `msg` output binding object to create a queue message. Add this code before the method returns.
@@ -17,10 +23,4 @@ At this point, your function must look as follows:
1723

1824
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-cli/HttpExample.cs" range="14-36":::
1925

20-
# [Isolated worker model](#tab/isolated-process)
21-
22-
Replace the existing `HttpExample` class with the following code:
23-
24-
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-isolated/HttpExample.cs" range="11-32":::
25-
2626
---

includes/functions-add-storage-binding-csharp-library.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ ms.custom: devdivchpfy22
99

1010
In a C# project, the bindings are defined as binding attributes on the function method. Specific definitions depend on whether your app runs in-process (C# class library) or in an isolated worker process.
1111

12+
# [Isolated worker model](#tab/isolated-process)
13+
14+
Open the *HttpExample.cs* project file and add the following `MultiResponse` class:
15+
16+
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-isolated/HttpExample.cs" range="33-38":::
17+
18+
The `MultiResponse` class allows you to write to a storage queue named `outqueue` and an HTTP success message. Multiple messages could be sent to the queue because the `QueueOutput` attribute is applied to a string array.
19+
20+
The `Connection` property sets the connection string for the storage account. In this case, you could omit `Connection` because you're already using the default storage account.
21+
1222
# [In-process model](#tab/in-process)
1323

1424
Open the *HttpExample.cs* project file and add the following parameter to the `Run` method definition:
@@ -21,14 +31,4 @@ The Run method definition must now look like the following code:
2131

2232
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-cli/HttpExample.cs" range="14-18":::
2333

24-
# [Isolated worker model](#tab/isolated-process)
25-
26-
Open the *HttpExample.cs* project file and add the following `MultiResponse` class:
27-
28-
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-isolated/HttpExample.cs" range="33-38":::
29-
30-
The `MultiResponse` class allows you to write to a storage queue named `outqueue` and an HTTP success message. Multiple messages could be sent to the queue because the `QueueOutput` attribute is applied to a string array.
31-
32-
The `Connection` property sets the connection string for the storage account. In this case, you could omit `Connection` because you're already using the default storage account.
33-
3434
---

includes/functions-bindings-event-hubs-trigger.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ This article supports both programming models.
3434

3535
::: zone pivot="programming-language-csharp"
3636

37+
# [Isolated worker model](#tab/isolated-process)
38+
39+
The following example shows a [C# function](../articles/azure-functions/dotnet-isolated-process-guide.md) that is triggered based on an event hub, where the input message string is written to the logs:
40+
41+
:::code language="csharp" source="~/azure-functions-dotnet-worker/samples/Extensions/EventHubs/EventHubsFunction.cs" range="12-23":::
42+
3743
# [In-process model](#tab/in-process)
3844

3945
The following example shows a [C# function](../articles/azure-functions/functions-dotnet-class-library.md) that logs the message body of the Event Hubs trigger.
@@ -85,12 +91,6 @@ public void Run([EventHubTrigger("samples-workitems", Connection = "EventHubConn
8591
}
8692
}
8793
```
88-
# [Isolated worker model](#tab/isolated-process)
89-
90-
The following example shows a [C# function](../articles/azure-functions/dotnet-isolated-process-guide.md) that is triggered based on an event hub, where the input message string is written to the logs:
91-
92-
:::code language="csharp" source="~/azure-functions-dotnet-worker/samples/Extensions/EventHubs/EventHubsFunction.cs" range="12-23":::
93-
9494
---
9595

9696
::: zone-end
@@ -335,19 +335,19 @@ public class EventHubReceiver {
335335

336336
Both [in-process](../articles/azure-functions/functions-dotnet-class-library.md) and [isolated worker process](../articles/azure-functions/dotnet-isolated-process-guide.md) C# libraries use attribute to configure the trigger. C# script instead uses a function.json configuration file as described in the [C# scripting guide](../articles/azure-functions/functions-reference-csharp.md#event-hubs-trigger).
337337

338-
# [In-process model](#tab/in-process)
338+
# [Isolated worker model](#tab/isolated-process)
339339

340-
In [C# class libraries](../articles/azure-functions/functions-dotnet-class-library.md), use the [EventHubTriggerAttribute], which supports the following properties.
340+
Use the `EventHubTriggerAttribute` to define a trigger on an event hub, which supports the following properties.
341341

342342
| Parameters | Description|
343343
|---------|----------------------|
344344
|**EventHubName** | The name of the event hub. When the event hub name is also present in the connection string, that value overrides this property at runtime. Can be referenced in [app settings](../articles/azure-functions/functions-bindings-expressions-patterns.md#binding-expressions---app-settings), like `%eventHubName%` |
345345
|**ConsumerGroup** | An optional property that sets the [consumer group](../articles/event-hubs/event-hubs-features.md#event-consumers) used to subscribe to events in the hub. When omitted, the `$Default` consumer group is used. |
346346
|**Connection** | The name of an app setting or setting collection that specifies how to connect to Event Hubs. To learn more, see [Connections](#connections).|
347347

348-
# [Isolated worker model](#tab/isolated-process)
348+
# [In-process model](#tab/in-process)
349349

350-
Use the `EventHubTriggerAttribute` to define a trigger on an event hub, which supports the following properties.
350+
In [C# class libraries](../articles/azure-functions/functions-dotnet-class-library.md), use the [EventHubTriggerAttribute], which supports the following properties.
351351

352352
| Parameters | Description|
353353
|---------|----------------------|

includes/functions-bindings-event-hubs.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ ms.author: cshoe
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)
15+
16+
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).
17+
1418
# [In-process model](#tab/in-process)
1519

1620
Functions execute in the same process as the Functions host. To learn more, see [Develop C# class library functions using Azure Functions](../articles/azure-functions/functions-dotnet-class-library.md).
1721

1822
In a variation of this model, Functions can be run using [C# scripting], which is supported primarily for C# portal editing. To update existing binding extensions for C# script apps running in the portal without having to republish your function app, see [Update your extensions].
1923

20-
# [Isolated worker model](#tab/isolated-process)
21-
22-
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).
23-
2424
---
2525

2626
The functionality of the extension varies depending on the extension version:
@@ -101,15 +101,15 @@ Version 1.x of the Functions runtime doesn't require extension bundles.
101101

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

104-
# [In-process model](#tab/in-process)
105-
106-
An in-process class library is a compiled C# function runs in the same process as the Functions runtime.
107-
108104
# [Isolated worker model](#tab/isolated-process)
109105

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

112108

109+
# [In-process model](#tab/in-process)
110+
111+
An in-process class library is a compiled C# function runs in the same process as the Functions runtime.
112+
113113
---
114114

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

includes/functions-register-storage-binding-extension-csharp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ ms.custom: devdivchpfy22
1010

1111
Except for HTTP and timer triggers, bindings are implemented as extension packages. Run the following [dotnet add package](/dotnet/core/tools/dotnet-add-package) command in the Terminal window to add the Storage extension package to your project.
1212

13-
# [In-process](#tab/in-process)
14-
```bash
15-
dotnet add package Microsoft.Azure.WebJobs.Extensions.Storage
16-
```
1713
# [Isolated process](#tab/isolated-process)
1814
```bash
1915
dotnet add package Microsoft.Azure.Functions.Worker.Extensions.Storage.Queues --prerelease
2016
```
17+
# [In-process](#tab/in-process)
18+
```bash
19+
dotnet add package Microsoft.Azure.WebJobs.Extensions.Storage
20+
```
2121
---
2222
Now, you can add the storage output binding to your project.
2323
::: zone-end

0 commit comments

Comments
 (0)