@@ -50,7 +50,7 @@ See [Class based model](../azure-signalr/signalr-concept-serverless-development-
50
50
public class HubName1 : ServerlessHub
51
51
{
52
52
[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 )
54
54
{
55
55
logger .LogInformation ($" Receive {message } from {invocationContext .ConnectionId }." );
56
56
}
@@ -63,7 +63,7 @@ Traditional model obeys the convention of Azure Function developed by C#. If you
63
63
64
64
``` cs
65
65
[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 )
67
67
{
68
68
logger .LogInformation ($" Receive {message } from {invocationContext .ConnectionId }." );
69
69
}
@@ -73,7 +73,7 @@ Because it can be hard to use `ParameterNames` in the trigger, the following exa
73
73
74
74
``` cs
75
75
[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 )
77
77
{
78
78
logger .LogInformation ($" Receive {message } from {invocationContext .ConnectionId }." );
79
79
}
@@ -113,7 +113,7 @@ app.generic("function1",
113
113
Here's the JavaScript code:
114
114
115
115
``` javascript
116
- module .exports = async function (context , invocation ) {
116
+ module .exports = function (context , invocation ) {
117
117
context .log (` Receive ${ context .bindingData .message } from ${ invocation .ConnectionId } .` )
118
118
};
119
119
```
0 commit comments