HubConnectionExtensions.StreamAsChannelAsync Método

Definição

Sobrecargas

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

StreamAsChannelAsync<TResult>(HubConnection, String, Object, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e o argumento.

StreamAsChannelAsync<TResult>(HubConnection, String, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado e o tipo de retorno.

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, CancellationToken)

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, object? arg10, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, arg8 As Object, arg9 As Object, arg10 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

arg1
Object

O primeiro argumento.

arg2
Object

O segundo argumento.

arg3
Object

O terceiro argumento.

arg4
Object

O quarto argumento.

arg5
Object

O quinto argumento.

arg6
Object

O sexto argumento.

arg7
Object

O sétimo argumento.

arg8
Object

O oitavo argumento.

arg9
Object

O nono argumento.

arg10
Object

O décimo argumento.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método hub transmitido.

Aplica-se a

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, arg8 As Object, arg9 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

arg1
Object

O primeiro argumento.

arg2
Object

O segundo argumento.

arg3
Object

O terceiro argumento.

arg4
Object

O quarto argumento.

arg5
Object

O quinto argumento.

arg6
Object

O sexto argumento.

arg7
Object

O sétimo argumento.

arg8
Object

O oitavo argumento.

arg9
Object

O nono argumento.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método hub transmitido.

Aplica-se a

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

arg1
Object

O primeiro argumento.

arg2
Object

O segundo argumento.

arg3
Object

O terceiro argumento.

arg4
Object

O quarto argumento.

arg5
Object

O quinto argumento.

arg6
Object

O sexto argumento.

arg7
Object

O sétimo argumento.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método hub transmitido.

Aplica-se a

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

arg1
Object

O primeiro argumento.

arg2
Object

O segundo argumento.

arg3
Object

O terceiro argumento.

arg4
Object

O quarto argumento.

arg5
Object

O quinto argumento.

arg6
Object

O sexto argumento.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método hub transmitido.

Aplica-se a

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método especificado, o tipo de retorno e os argumentos.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

arg1
Object

O primeiro argumento.

arg2
Object

O segundo argumento.

arg3
Object

O terceiro argumento.

arg4
Object

O quarto argumento.

arg5
Object

O quinto argumento.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método hub transmitido.

Aplica-se a

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método, o tipo de retorno e os argumentos especificados.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, arg8 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

arg1
Object

O primeiro argumento.

arg2
Object

O segundo argumento.

arg3
Object

O terceiro argumento.

arg4
Object

O quarto argumento.

arg5
Object

O quinto argumento.

arg6
Object

O sexto argumento.

arg7
Object

O sétimo argumento.

arg8
Object

O oitavo argumento.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método de hub transmitido.

Aplica-se a

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método, o tipo de retorno e os argumentos especificados.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

arg1
Object

O primeiro argumento.

arg2
Object

O segundo argumento.

arg3
Object

O terceiro argumento.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método de hub transmitido.

Aplica-se a

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método, o tipo de retorno e os argumentos especificados.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

arg1
Object

O primeiro argumento.

arg2
Object

O segundo argumento.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método de hub transmitido.

Aplica-se a

StreamAsChannelAsync<TResult>(HubConnection, String, Object, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método, o tipo de retorno e o argumento especificados.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

arg1
Object

O primeiro argumento.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método de hub transmitido.

Aplica-se a

StreamAsChannelAsync<TResult>(HubConnection, String, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método e o tipo de retorno especificados.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método de hub transmitido.

Aplica-se a

StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, CancellationToken)

Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs
Origem:
HubConnectionExtensions.StreamAsChannelAsync.cs

Invoca um método de hub de streaming no servidor usando o nome do método, o tipo de retorno e os argumentos especificados.

public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<TResult>> StreamAsChannelAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, System.Threading.CancellationToken cancellationToken = default);
static member StreamAsChannelAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<'Result>>
<Extension()>
Public Function StreamAsChannelAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChannelReader(Of TResult))

Parâmetros de tipo

TResult

O tipo de retorno do método de servidor de streaming.

Parâmetros

hubConnection
HubConnection

A conexão do hub.

methodName
String

O nome do método de servidor a ser invocado.

arg1
Object

O primeiro argumento.

arg2
Object

O segundo argumento.

arg3
Object

O terceiro argumento.

arg4
Object

O quarto argumento.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento. O valor padrão é None.

Retornos

Task<ChannelReader<TResult>>

Um Task<TResult> que representa a invocação assíncrona. A Result propriedade retorna um ChannelReader<T> para os valores do método de hub transmitido.

Aplica-se a