HubLifetimeManager<THub>.SendAllExceptAsync 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 all hub connections excluding the specified connections.
public abstract System.Threading.Tasks.Task SendAllExceptAsync (string methodName, object[] args, System.Collections.Generic.IReadOnlyList<string> excludedConnectionIds, System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task SendAllExceptAsync (string methodName, object?[]? args, System.Collections.Generic.IReadOnlyList<string> excludedConnectionIds, System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task SendAllExceptAsync (string methodName, object?[] args, System.Collections.Generic.IReadOnlyList<string> excludedConnectionIds, System.Threading.CancellationToken cancellationToken = default);
abstract member SendAllExceptAsync : string * obj[] * System.Collections.Generic.IReadOnlyList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function SendAllExceptAsync (methodName As String, args As Object(), excludedConnectionIds As IReadOnlyList(Of String), Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- methodName
- String
The invocation method name.
- args
- Object[]
The invocation arguments.
- excludedConnectionIds
- IReadOnlyList<String>
A collection of connection IDs to exclude.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous send.