Scheduler.DisableOptimizations(IScheduler) method¶
Defined in
Type: Scheduler
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public static IScheduler DisableOptimizations(this IScheduler scheduler) - 2.
public static IScheduler DisableOptimizations(this IScheduler scheduler, params Type[] optimizationInterfaces)
1. Overload¶
public static IScheduler DisableOptimizations(this IScheduler scheduler)
Summary: Returns a scheduler that represents the original scheduler, without any of its interface-based optimizations (e.g. long running scheduling).
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | Scheduler to disable all optimizations for. |
Returns: IScheduler -- Proxy to the original scheduler but without any optimizations enabled.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler is null. |
2. Overload¶
public static IScheduler DisableOptimizations(this IScheduler scheduler, params Type[] optimizationInterfaces)
Summary: Returns a scheduler that represents the original scheduler, without the specified set of interface-based optimizations (e.g. long running scheduling).
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | Scheduler to disable the specified optimizations for. |
params optimizationInterfaces | Type[] | Types of the optimization interfaces that have to be disabled. |
Returns: IScheduler -- Proxy to the original scheduler but without the specified optimizations enabled.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler or optimizationInterfaces is null. |