HubLifetimeManager<THub>.SendConnectionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends an invocation message to the specified connection.
public abstract System.Threading.Tasks.Task SendConnectionAsync (string connectionId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task SendConnectionAsync (string connectionId, string methodName, object?[]? args, System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task SendConnectionAsync (string connectionId, string methodName, object?[] args, System.Threading.CancellationToken cancellationToken = default);
abstract member SendConnectionAsync : string * string * obj[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function SendConnectionAsync (connectionId As String, methodName As String, args As Object(), Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- connectionId
- String
The connection ID.
- methodName
- String
The invocation method name.
- args
- Object[]
The invocation arguments.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous send.
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: