Skip to content

Commit 44bbe7f

Browse files
authored
Fix language in snippet tag
1 parent 3f78662 commit 44bbe7f

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

articles/azure-functions/functions-bindings-kafka-output.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Apache Kafka output binding for Azure Functions
33
description: Use Azure Functions to write messages to an Apache Kafka stream.
44
ms.topic: reference
55
ms.custom: devx-track-extended-java, devx-track-js, devx-track-python
6-
ms.date: 05/14/2022
6+
ms.date: 06/14/2024
77
zone_pivot_groups: programming-languages-set-functions-lang-workers
88
---
99

@@ -37,51 +37,51 @@ The attributes you use depend on the specific event provider.
3737

3838
The following example shows a C# function that sends a single message to a Kafka topic, using data provided in HTTP GET request.
3939

40-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet/Confluent/KafkaOutput.cs" range="12-32" :::
40+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet/Confluent/KafkaOutput.cs" range="12-32" :::
4141

4242
To send events in a batch, use an array of `KafkaEventData` objects, as shown in the following example:
4343

44-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet/Confluent/KafkaOutputMany.cs" range="12-30" :::
44+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet/Confluent/KafkaOutputMany.cs" range="12-30" :::
4545

4646
The following function adds headers to the Kafka output data:
4747

48-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet/Confluent/KafkaOutputWithHeaders.cs" range="11-31" :::
48+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet/Confluent/KafkaOutputWithHeaders.cs" range="11-31" :::
4949

5050
For a complete set of working .NET examples, see the [Kafka extension repository](https://github.com/Azure/azure-functions-kafka-extension/blob/dev/samples/dotnet/Confluent/).
5151

5252
# [Event Hubs](#tab/event-hubs/in-process)
5353

5454
The following example shows a C# function that sends a single message to a Kafka topic, using data provided in HTTP GET request.
5555

56-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet/EventHub/KafkaOutput.cs" range="11-31" :::
56+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet/EventHub/KafkaOutput.cs" range="11-31" :::
5757

5858
To send events in a batch, use an array of `KafkaEventData` objects, as shown in the following example:
5959

60-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet/EventHub/KafkaOutputMany.cs" range="12-30" :::
60+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet/EventHub/KafkaOutputMany.cs" range="12-30" :::
6161

6262
The following function adds headers to the Kafka output data:
6363

64-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet/EventHub/KafkaOutputWithHeaders.cs" range="11-31" :::
64+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet/EventHub/KafkaOutputWithHeaders.cs" range="11-31" :::
6565

6666
For a complete set of working .NET examples, see the [Kafka extension repository](https://github.com/Azure/azure-functions-kafka-extension/blob/dev/samples/dotnet/EventHub).
6767

6868
# [Confluent](#tab/confluent/isolated-process)
6969

7070
The following example has a custom return type that is `MultipleOutputType`, which consists of an HTTP response and a Kafka output.
7171

72-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/confluent/KafkaOutput.cs" range="11-31" :::
72+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/confluent/KafkaOutput.cs" range="11-31" :::
7373

7474
In the class `MultipleOutputType`, `Kevent` is the output binding variable for the Kafka binding.
7575

76-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/confluent/KafkaOutput.cs" range="34-46" :::
76+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/confluent/KafkaOutput.cs" range="34-46" :::
7777

7878
To send a batch of events, pass a string array to the output type, as shown in the following example:
7979

80-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/confluent/KafkaOutputMany.cs" range="11-30" :::
80+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/confluent/KafkaOutputMany.cs" range="11-30" :::
8181

8282
The string array is defined as `Kevents` property on the class, on which the output binding is defined:
8383

84-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/confluent/KafkaOutputMany.cs" range="33-45" :::
84+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/confluent/KafkaOutputMany.cs" range="33-45" :::
8585

8686
The following function adds headers to the Kafka output data:
8787

@@ -94,19 +94,19 @@ For a complete set of working .NET examples, see the [Kafka extension repository
9494

9595
The following example has a custom return type that is `MultipleOutputType`, which consists of an HTTP response and a Kafka output.
9696

97-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/eventhub/KafkaOutput.cs" range="11-31" :::
97+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/eventhub/KafkaOutput.cs" range="11-31" :::
9898

9999
In the class `MultipleOutputType`, `Kevent` is the output binding variable for the Kafka binding.
100100

101-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/eventhub/KafkaOutput.cs" range="34-46" :::
101+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/eventhub/KafkaOutput.cs" range="34-46" :::
102102

103103
To send a batch of events, pass a string array to the output type, as shown in the following example:
104104

105-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/eventhub/KafkaOutputMany.cs" range="11-30" :::
105+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/eventhub/KafkaOutputMany.cs" range="11-30" :::
106106

107107
The string array is defined as `Kevents` property on the class, on which the output binding is defined:
108108

109-
:::code language="json" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/eventhub/KafkaOutputMany.cs" range="33-45" :::
109+
:::code language="csharp" source="~/azure-functions-kafka-extension/samples/dotnet-isolated/eventhub/KafkaOutputMany.cs" range="33-45" :::
110110

111111
The following function adds headers to the Kafka output data:
112112

0 commit comments

Comments
 (0)