HubConnectionExtensions.StreamAsChannelAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
使用指定的方法名稱、傳回型別和引數,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- arg1
- Object
第一個引數。
- arg2
- Object
第二個引數。
- arg3
- Object
第三個引數。
- arg4
- Object
第四個引數。
- arg5
- Object
第五個引數。
- arg6
- Object
第六個引數。
- arg7
- Object
第七個引數。
- arg8
- Object
第八個引數。
- arg9
- Object
第九個引數。
- arg10
- Object
第十個引數。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。
適用於
StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
使用指定的方法名稱、傳回型別和引數,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- arg1
- Object
第一個引數。
- arg2
- Object
第二個引數。
- arg3
- Object
第三個引數。
- arg4
- Object
第四個引數。
- arg5
- Object
第五個引數。
- arg6
- Object
第六個引數。
- arg7
- Object
第七個引數。
- arg8
- Object
第八個引數。
- arg9
- Object
第九個引數。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。
適用於
StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
使用指定的方法名稱、傳回型別和引數,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- arg1
- Object
第一個引數。
- arg2
- Object
第二個引數。
- arg3
- Object
第三個引數。
- arg4
- Object
第四個引數。
- arg5
- Object
第五個引數。
- arg6
- Object
第六個引數。
- arg7
- Object
第七個引數。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。
適用於
StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)
使用指定的方法名稱、傳回型別和引數,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- arg1
- Object
第一個引數。
- arg2
- Object
第二個引數。
- arg3
- Object
第三個引數。
- arg4
- Object
第四個引數。
- arg5
- Object
第五個引數。
- arg6
- Object
第六個引數。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。
適用於
StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)
使用指定的方法名稱、傳回型別和引數,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- arg1
- Object
第一個引數。
- arg2
- Object
第二個引數。
- arg3
- Object
第三個引數。
- arg4
- Object
第四個引數。
- arg5
- Object
第五個引數。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。
適用於
StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
使用指定的方法名稱、傳回類型和引數,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- arg1
- Object
第一個引數。
- arg2
- Object
第二個引數。
- arg3
- Object
第三個引數。
- arg4
- Object
第四個引數。
- arg5
- Object
第五個引數。
- arg6
- Object
第六個引數。
- arg7
- Object
第七個引數。
- arg8
- Object
第八個引數。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。
適用於
StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, CancellationToken)
使用指定的方法名稱、傳回類型和引數,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- arg1
- Object
第一個引數。
- arg2
- Object
第二個引數。
- arg3
- Object
第三個引數。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。
適用於
StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, CancellationToken)
使用指定的方法名稱、傳回類型和引數,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- arg1
- Object
第一個引數。
- arg2
- Object
第二個引數。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。
適用於
StreamAsChannelAsync<TResult>(HubConnection, String, Object, CancellationToken)
使用指定的方法名稱、傳回類型和引數,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- arg1
- Object
第一個引數。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。
適用於
StreamAsChannelAsync<TResult>(HubConnection, String, CancellationToken)
使用指定的方法名稱和傳回型別,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。
適用於
StreamAsChannelAsync<TResult>(HubConnection, String, Object, Object, Object, Object, CancellationToken)
使用指定的方法名稱、傳回類型和引數,在伺服器上叫用串流中樞方法。
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))
類型參數
- TResult
串流伺服器方法的傳回型別。
參數
- hubConnection
- HubConnection
中樞連線。
- methodName
- String
要叫用的伺服器方法名稱。
- arg1
- Object
第一個引數。
- arg2
- Object
第二個引數。
- arg3
- Object
第三個引數。
- arg4
- Object
第四個引數。
- cancellationToken
- CancellationToken
用來監視是否有取消要求的語彙基元。 預設值是 None。
傳回
, Task<TResult> 表示非同步叫用。 屬性 Result 會 ChannelReader<T> 傳回資料流程中樞方法值的 。