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.Reactive Assembly: ReactiveUI.AspNetCore.SignalR.Client.Rx.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

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<Unit> 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.Reactive.HubMethod-1)--
cancellationTokenCancellationToken--
params argsobject?[]--

Returns: IObservable

2. Overload

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

View source

Parameters

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

Returns: IObservable