Skip to content

Commit 60642f4

Browse files
authored
Update functions-bindings-signalr-service-trigger.md
1 parent e8aca53 commit 60642f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/azure-functions/functions-bindings-signalr-service-trigger.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ See [Class based model](../azure-signalr/signalr-concept-serverless-development-
5050
public class HubName1 : ServerlessHub
5151
{
5252
[FunctionName("SignalRTest")]
53-
public async Task SendMessage([SignalRTrigger]InvocationContext invocationContext, string message, ILogger logger)
53+
public Task SendMessage([SignalRTrigger]InvocationContext invocationContext, string message, ILogger logger)
5454
{
5555
logger.LogInformation($"Receive {message} from {invocationContext.ConnectionId}.");
5656
}
@@ -63,7 +63,7 @@ Traditional model obeys the convention of Azure Function developed by C#. If you
6363

6464
```cs
6565
[FunctionName("SignalRTest")]
66-
public static async Task Run([SignalRTrigger("SignalRTest", "messages", "SendMessage", parameterNames: new string[] {"message"})]InvocationContext invocationContext, string message, ILogger logger)
66+
public static Task Run([SignalRTrigger("SignalRTest", "messages", "SendMessage", parameterNames: new string[] {"message"})]InvocationContext invocationContext, string message, ILogger logger)
6767
{
6868
logger.LogInformation($"Receive {message} from {invocationContext.ConnectionId}.");
6969
}
@@ -73,7 +73,7 @@ Because it can be hard to use `ParameterNames` in the trigger, the following exa
7373

7474
```cs
7575
[FunctionName("SignalRTest")]
76-
public static async Task Run([SignalRTrigger("SignalRTest", "messages", "SendMessage")]InvocationContext invocationContext, [SignalRParameter]string message, ILogger logger)
76+
public static Task Run([SignalRTrigger("SignalRTest", "messages", "SendMessage")]InvocationContext invocationContext, [SignalRParameter]string message, ILogger logger)
7777
{
7878
logger.LogInformation($"Receive {message} from {invocationContext.ConnectionId}.");
7979
}
@@ -113,7 +113,7 @@ app.generic("function1",
113113
Here's the JavaScript code:
114114

115115
```javascript
116-
module.exports = async function (context, invocation) {
116+
module.exports = function (context, invocation) {
117117
context.log(`Receive ${context.bindingData.message} from ${invocation.ConnectionId}.`)
118118
};
119119
```

0 commit comments

Comments
 (0)