Skip to content

Commit b14aaef

Browse files
committed
fix C#
1 parent 248b526 commit b14aaef

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

articles/azure-functions/functions-bindings-service-bus-output.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ This example shows a [C# function](dotnet-isolated-process-guide.md) that receiv
5555

5656
This example uses an HTTP trigger with an `OutputType` object to both send an HTTP response and write the output message.
5757

58-
```cs
58+
```csharp
5959
[Function("HttpSendMsg")]
6060
public async Task<OutputType> Run([HttpTrigger(AuthorizationLevel.Function, "get", "post")] HttpRequestData req, FunctionContext context)
6161
{
@@ -74,7 +74,7 @@ public async Task<OutputType> Run([HttpTrigger(AuthorizationLevel.Function, "get
7474

7575
This code defines the multiple output type `OutputType`, which includes the Service Bus output binding definition on `OutputEvent`:
7676

77-
```cs
77+
```csharp
7878
public class OutputType
7979
{
8080
[ServiceBusOutput("TopicOrQueueName", Connection = "ServiceBusConnection")]
@@ -88,7 +88,7 @@ This code defines the multiple output type `OutputType`, which includes the Serv
8888

8989
The following example shows a [C# function](functions-dotnet-class-library.md) that sends a Service Bus queue message:
9090

91-
```cs
91+
```csharp
9292
[FunctionName("ServiceBusOutput")]
9393
[return: ServiceBus("myqueue", Connection = "ServiceBusConnection")]
9494
public static string ServiceBusOutput([HttpTrigger] dynamic input, ILogger log)
@@ -97,13 +97,12 @@ public static string ServiceBusOutput([HttpTrigger] dynamic input, ILogger log)
9797
return input.Text;
9898
}
9999
```
100-
101100
&nbsp;
102101
<hr/>
103102

104103
Instead of using the return statement to send the message, this HTTP trigger function returns an HTTP response that is different from the output message.
105104

106-
```cs
105+
```csharp
107106
[FunctionName("HttpTrigger1")]
108107
public static async Task<IActionResult> Run(
109108
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req,

0 commit comments

Comments
 (0)