Skip to content

Commit ab87779

Browse files
authored
update
1 parent f799f99 commit ab87779

6 files changed

+11
-11
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ You can set the `UserId` property of the binding to the value from either header
149149
```cs
150150
[Function("Negotiate")]
151151
public static string Negotiate([HttpTrigger(AuthorizationLevel.Anonymous)] HttpRequestData req,
152-
[SignalRConnectionInfoInput(HubName = "serverless", UserId = "{headers.x-ms-client-principal-id}")] string connectionInfo)
152+
[SignalRConnectionInfoInput(HubName = "hubName1", UserId = "{headers.x-ms-client-principal-id}")] string connectionInfo)
153153
{
154154
// The serialization of the connection info object is done by the framework. It should be camel case. The SignalR client respects the camel case response only.
155155
return connectionInfo;
@@ -185,7 +185,7 @@ public SignalRConnectionInfo negotiate(
185185
methods = { HttpMethod.POST, HttpMethod.GET },
186186
authLevel = AuthorizationLevel.ANONYMOUS)
187187
HttpRequestMessage<Optional<String>> req,
188-
@SignalRConnectionInfoInput(name = "connectionInfo", hubName = "simplechat", userId = "{headers.x-ms-signalr-userid}") SignalRConnectionInfo connectionInfo) {
188+
@SignalRConnectionInfoInput(name = "connectionInfo", hubName = "hubName1", userId = "{headers.x-ms-signalr-userid}") SignalRConnectionInfo connectionInfo) {
189189
return connectionInfo;
190190
}
191191
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ SignalR Service trigger binding for C# has two programming models. Class based m
4444
See [Class based model](../azure-signalr/signalr-concept-serverless-development-config.md#class-based-model) for details.
4545

4646
```cs
47-
public class SignalRTestHub : ServerlessHub
47+
public class HubName1 : ServerlessHub
4848
{
4949
[FunctionName("SignalRTest")]
5050
public async Task SendMessage([SignalRTrigger]InvocationContext invocationContext, string message, ILogger logger)
@@ -96,7 +96,7 @@ SignalR trigger isn't currently supported for Java.
9696
```javascript
9797
app.generic("function1",
9898
{
99-
trigger: { "type": "signalRTrigger", "name": "invocation", "direction": "in", "hubName": "SignalRTest", "event": "SendMessage", "category": "messages" },
99+
trigger: { "type": "signalRTrigger", "name": "invocation", "direction": "in", "hubName": "hubName1", "event": "SendMessage", "category": "messages" },
100100
handler: (triggerInput, context) => {
101101
context.log(`Receive ${context.Arguments[0]} from ${triggerInput.ConnectionId}.`)
102102
}

articles/azure-signalr/signalr-concept-serverless-development-config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Details on how to develop and configure serverless real-time applic
44
author: vicancy
55
ms.service: signalr
66
ms.topic: conceptual
7-
ms.date: 04/20/2022
7+
ms.date: 03/20/2024
88
ms.author: lianwei
99
ms.devlang: csharp
1010
# ms.devlang: csharp, javascript
@@ -78,7 +78,7 @@ The class-based model is dedicated for C#. The class-based model provides a cons
7878
The following code demonstrates these features:
7979

8080
```cs
81-
public class SignalRTestHub : ServerlessHub
81+
public class HubName1 : ServerlessHub
8282
{
8383
[FunctionName("negotiate")]
8484
public SignalRConnectionInfo Negotiate([HttpTrigger(AuthorizationLevel.Anonymous)]HttpRequest req)

includes/functions-bindings-signalr-input-function-json.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: Y-Sindo
33
ms.service: azure-functions
44
ms.topic: include
5-
ms.date: 07/02/2024
5+
ms.date: 03/20/2024
66
ms.author: zityang
77
---
88

@@ -14,7 +14,7 @@ Here's binding data for the example in the *function.json* file:
1414
{
1515
"type": "signalRConnectionInfo",
1616
"name": "connectionInfo",
17-
"hubName": "chat",
17+
"hubName": "hubName1",
1818
"connectionStringSetting": "<name of setting containing SignalR Service connection string>",
1919
"direction": "in"
2020
}

includes/functions-bindings-signalr-output-function-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: Y-Sindo
33
ms.service: azure-functions
44
ms.topic: include
5-
ms.date: 07/02/2024
5+
ms.date: 03/20/2024
66
ms.author: zityang
77
---
88

includes/functions-bindings-signalr-trigger-function-json.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: Y-Sindo
33
ms.service: azure-functions
44
ms.topic: include
5-
ms.date: 07/02/2024
5+
ms.date: 03/20/2024
66
ms.author: zityang
77
---
88

@@ -12,7 +12,7 @@ Here's binding data in the *function.json* file:
1212
{
1313
"type": "signalRTrigger",
1414
"name": "invocation",
15-
"hubName": "SignalRTest",
15+
"hubName": "hubName1",
1616
"category": "messages",
1717
"event": "SendMessage",
1818
"parameterNames": [

0 commit comments

Comments
 (0)