You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Copy file name to clipboardExpand all lines: articles/azure-signalr/signalr-concept-serverless-development-config.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@ You could send messages, manage groups, or manage clients by accessing the membe
141
141
-`ServerlessHub.UserGroups` for managing users with groups, such as adding users to groups, removing users from groups.
142
142
-`ServerlessHub.ClientManager` for checking connections existence, closing connections, etc.
143
143
144
-
### [Strongly Typed Hub]
144
+
### Strongly Typed Hub
145
145
146
146
[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>`.
147
147
@@ -173,7 +173,8 @@ public class Functions : ServerlessHub<IChatClient>
173
173
}
174
174
```
175
175
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/).
177
178
178
179
### Unified connection string setting in one place.
179
180
@@ -185,7 +186,8 @@ public class Functions : ServerlessHub<IChatClient>
185
186
186
187
Itallowsyoutocustomize where the SignalR Service bindings look for connection string. If it's absent, the default value `AzureSignalRConnectionString` is used.
187
188
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.
189
191
190
192
# [In-process model](#tab/in-process)
191
193
@@ -291,7 +293,6 @@ public async Task Broadcast([SignalRTrigger]InvocationContext invocationContext,
0 commit comments