,System.Threading.CancellationToken)} ,System.Threading.CancellationToken,System.Object[])}
HubConnectionMixins.StreamObservable(HubConnection, HubMethod, CancellationToken) method¶
Defined in
Type: HubConnectionMixins
Namespace: ReactiveUI.AspNetCore.SignalR.Client.Rx
Assembly: ReactiveUI.AspNetCore.SignalR.Client.Rx.dll
Applies to
net11.0, net10.0, net471, net47, net472, net481, net48
Overloads¶
-
public static IObservable<T> StreamObservable<T>(this HubConnection connection, HubMethod<T> method, CancellationToken cancellationToken) where T : notnull -
public static IObservable<T> StreamObservable<T>(this HubConnection connection, HubMethod<T> method, CancellationToken cancellationToken, params object?[] args) where T : notnull
1. Overload¶
public static IObservable<T> StreamObservable<T>(this HubConnection connection, HubMethod<T> method, CancellationToken cancellationToken) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
connection | HubConnection | -- |
method | [HubMethod | -- |
cancellationToken | CancellationToken | -- |
Returns: IObservable
2. Overload¶
public static IObservable<T> StreamObservable<T>(this HubConnection connection, HubMethod<T> method, CancellationToken cancellationToken, params object?[] args) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
connection | HubConnection | -- |
method | [HubMethod | -- |
cancellationToken | CancellationToken | -- |
params args | object?[] | -- |
Returns: IObservable