)} ,System.Reactive.Concurrency.IScheduler)} })} },System.Reactive.Concurrency.IScheduler)}
Qbservable.Start(IQbservableProvider, Expression) method¶
Defined in
Type: Qbservable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public static IQbservable<Unit> Start(this IQbservableProvider provider, Expression<Action> action) - 2.
public static IQbservable<Unit> Start(this IQbservableProvider provider, Expression<Action> action, IScheduler scheduler) - 3.
public static IQbservable<TResult> Start<TResult>(this IQbservableProvider provider, Expression<Func<TResult>> function) - 4.
public static IQbservable<TResult> Start<TResult>(this IQbservableProvider provider, Expression<Func<TResult>> function, IScheduler scheduler)
1. Overload¶
public static IQbservable<Unit> Start(this IQbservableProvider provider, Expression<Action> action)
Summary: Invokes the action asynchronously, surfacing the result through an observable sequence.
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
action | Expression | Action to run asynchronously. |
Returns: IQbservable
Remarks
-
The action is called immediately, not during the subscription of the resulting sequence.
-
Multiple subscriptions to the resulting sequence can observe the action's outcome.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | action is null. |
2. Overload¶
public static IQbservable<Unit> Start(this IQbservableProvider provider, Expression<Action> action, IScheduler scheduler)
Summary: Invokes the action asynchronously on the specified scheduler, surfacing the result through an observable sequence.
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
action | Expression | Action to run asynchronously. |
scheduler | [IScheduler](# | Scheduler to run the action on. |
Returns: IQbservable
Remarks
-
The action is called immediately, not during the subscription of the resulting sequence.
-
Multiple subscriptions to the resulting sequence can observe the action's outcome.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | action or scheduler is null. |
3. Overload¶
public static IQbservable<TResult> Start<TResult>(this IQbservableProvider provider, Expression<Func<TResult>> function)
Summary: Invokes the specified function asynchronously, surfacing the result through an observable sequence.
Type parameters
| Name | Description |
|---|---|
TResult | The type of the result returned by the function. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
function | Expression | Function to run asynchronously. |
Returns: IQbservable
Remarks
-
The function is called immediately, not during the subscription of the resulting sequence.
-
Multiple subscriptions to the resulting sequence can observe the function's result.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | function is null. |
4. Overload¶
public static IQbservable<TResult> Start<TResult>(this IQbservableProvider provider, Expression<Func<TResult>> function, IScheduler scheduler)
Summary: Invokes the specified function asynchronously on the specified scheduler, surfacing the result through an observable sequence
Type parameters
| Name | Description |
|---|---|
TResult | The type of the result returned by the function. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
function | Expression | Function to run asynchronously. |
scheduler | [IScheduler](# | Scheduler to run the function on. |
Returns: IQbservable
Remarks
-
The function is called immediately, not during the subscription of the resulting sequence.
-
Multiple subscriptions to the resulting sequence can observe the function's result.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | function or scheduler is null. |