Skip to content

,System.Threading.CancellationToken,System.Object[])}

HubConnectionMixins.InvokeObservable(HubConnection, HubMethod, CancellationToken, object?[]) 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

  1. public static IObservable<T> InvokeObservable<T>(this HubConnection connection, HubMethod<T> method, CancellationToken cancellationToken, params object?[] args) where T : notnull

  2. public static IObservable<RxVoid> InvokeObservable(this HubConnection connection, string methodName, CancellationToken cancellationToken, params object?[] args)

1. Overload

public static IObservable<T> InvokeObservable<T>(this HubConnection connection, HubMethod<T> method, CancellationToken cancellationToken, params object?[] args) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
connectionHubConnection--
method[HubMethod](#Rx.HubMethod-1)--
cancellationTokenCancellationToken--
params argsobject?[]--

Returns: IObservable

2. Overload

public static IObservable<RxVoid> InvokeObservable(this HubConnection connection, string methodName, CancellationToken cancellationToken, params object?[] args)

View source

Parameters

NameTypeDescription
connectionHubConnection--
methodNamestring--
cancellationTokenCancellationToken--
params argsobject?[]--

Returns: IObservable