)>
Defined in Type: HubBuilder
Namespace: ReactiveUI.AspNetCore.SignalR.Client.Rx
Assembly: ReactiveUI.AspNetCore.SignalR.Client.Rx.dll
Applies to
net11.0, net10.0, net471, net47, net472, net481, net48
public static IObservable<(HubConnection HubConnection, MultipleDisposable Disposables)> Create(Func<HubConnectionBuilder, IHubConnectionBuilder> hubConnectionBuilder)
Summary: Builds a new HubConnection for each subscription and disposes it when that subscription ends.
Parameters
| Name | Type | Description |
|---|---|---|
hubConnectionBuilder | Func | Configures the builder, for example with the hub URL; its result is built once per subscription. |
Returns: IObservable<(HubConnection HubConnection, MultipleDisposable Disposables)> -- An observable that emits one value: the built, unstarted connection and a disposable group. Add the subscriptions made on the connection to the group so they end with it.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | hubConnectionBuilder is null. |