Make Groups.Remove monospace (#7552)
parent
5cdd18fc83
commit
3594893b30
|
@ -67,7 +67,7 @@ If you want to add a client to a group and immediately send a message to the cli
|
|||
|
||||
[!code-csharp[Main](working-with-groups/samples/sample2.cs?highlight=1,3)]
|
||||
|
||||
In general, you should not include `await` when calling the `Groups.Remove` method because the connection id that you are trying to remove might no longer be available. In that case, `TaskCanceledException` is thrown after the request times out. If your application must ensure that the user has been removed from the group before sending a message to the group, you can add `await` before Groups.Remove, and then catch the `TaskCanceledException` exception that might be thrown.
|
||||
In general, you should not include `await` when calling the `Groups.Remove` method because the connection id that you are trying to remove might no longer be available. In that case, `TaskCanceledException` is thrown after the request times out. If your application must ensure that the user has been removed from the group before sending a message to the group, you can add `await` before `Groups.Remove`, and then catch the `TaskCanceledException` exception that might be thrown.
|
||||
|
||||
<a id="call"></a>
|
||||
|
||||
|
|
Loading…
Reference in New Issue