Share via


HubConnection.StreamAsyncCore<TResult> Metodo

Definizione

Richiama un metodo hub di streaming nel server usando il nome del metodo specificato, il tipo restituito e gli argomenti.

public System.Collections.Generic.IAsyncEnumerable<TResult> StreamAsyncCore<TResult> (string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Collections.Generic.IAsyncEnumerable<TResult> StreamAsyncCore<TResult> (string methodName, object?[] args, System.Threading.CancellationToken cancellationToken = default);
member this.StreamAsyncCore : string * obj[] * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Result>
abstract member StreamAsyncCore : string * obj[] * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Result>
override this.StreamAsyncCore : string * obj[] * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function StreamAsyncCore(Of TResult) (methodName As String, args As Object(), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TResult)
Public Overridable Function StreamAsyncCore(Of TResult) (methodName As String, args As Object(), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TResult)

Parametri di tipo

TResult

Tipo restituito del metodo del server di streaming.

Parametri

methodName
String

Nome del metodo server da richiamare.

args
Object[]

Argomenti usati per richiamare il metodo server.

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento. Il valore predefinito è None.

Restituisce

IAsyncEnumerable<TResult>

Oggetto IAsyncEnumerable<T> che rappresenta il flusso.

Si applica a