Skip to content

Commit 3f20473

Browse files
authored
update
1 parent 29af488 commit 3f20473

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ The following sample shows a C# function that receives a message event from clie
3535

3636
:::code language="csharp" source="~/azure-functions-dotnet-worker/samples/Extensions/SignalR/SignalRTriggerFunctions.cs" id="snippet_on_message":::
3737

38-
Class based model of SignalR Service bindings in C# isolated worker doesn't optimize how you write SignalR triggers due to the limitation of C# worker model. You can use class based model for SignalR input binding and output bindings. For more information about class based model, see [Class based model](../azure-signalr/signalr-concept-serverless-development-config.md#class-based-model).
38+
> [!IMPORTANT]
39+
> Class based model of SignalR Service bindings in C# isolated worker doesn't optimize how you write SignalR triggers due to the limitation of C# worker model. You can use class based model for SignalR input binding and output bindings. For more information about class based model, see [Class based model](../azure-signalr/signalr-concept-serverless-development-config.md#class-based-model).
3940
4041
# [In-process model](#tab/in-process)
4142

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ You could send messages, manage groups, or manage clients by accessing the membe
141141
- `ServerlessHub.UserGroups` for managing users with groups, such as adding users to groups, removing users from groups.
142142
- `ServerlessHub.ClientManager` for checking connections existence, closing connections, etc.
143143

144-
### [Strongly Typed Hub]
144+
### Strongly Typed Hub
145145

146146
[Strongly typed hub](/aspnet/core/signalr/hubs?#strongly-typed-hubs) allows you to use strongly typed methods when you send messages to clients. To use strongly typed hub in class based model, extract client methods into an interface `T`, and make your hub class derived from `ServerlessHub<T>`.
147147

@@ -173,7 +173,8 @@ public class Functions : ServerlessHub<IChatClient>
173173
}
174174
```
175175

176-
> You can get a complete project sample from [GitHub](https://github.com/aspnet/AzureSignalR-samples/tree/main/samples/DotnetIsolated-ClassBased/).
176+
> [!IMPORTANT]
177+
> You can get a complete project sample from [GitHub](https://github.com/aspnet/AzureSignalR-samples/tree/main/samples/DotnetIsolated-ClassBased/).
177178
178179
### Unified connection string setting in one place.
179180

@@ -185,7 +186,8 @@ public class Functions : ServerlessHub<IChatClient>
185186

186187
It allows you to customize where the SignalR Service bindings look for connection string. If it's absent, the default value `AzureSignalRConnectionString` is used.
187188

188-
> Please note that `SignalRConnection` attribute doesn't change the connection string setting of SignalR triggers, even though you use SignalR triggers inside the serverless hub. You should specify the connection string setting for each SignalR trigger if you want to customize it.
189+
> [!IMPORTANT]
190+
> `SignalRConnection` attribute doesn't change the connection string setting of SignalR triggers, even though you use SignalR triggers inside the serverless hub. You should specify the connection string setting for each SignalR trigger if you want to customize it.
189191

190192
# [In-process model](#tab/in-process)
191193

@@ -291,7 +293,6 @@ public async Task Broadcast([SignalRTrigger]InvocationContext invocationContext,
291293
{
292294
}
293295
```
294-
295296
---
296297

297298
## Client development

0 commit comments

Comments
 (0)