Skip to content

Scheduler.AsLongRunning(IScheduler) method

Defined in

Type: Scheduler Namespace: System.Reactive.Concurrency Assembly: System.Reactive.dll

Applies to

netstandard2.0

public static ISchedulerLongRunning? AsLongRunning(this IScheduler scheduler)

Summary: Returns the ISchedulerLongRunning implementation of the specified scheduler, or null if no such implementation is available.

Parameters

NameTypeDescription
scheduler[IScheduler](#Scheduler to get the [ISchedulerLongRunning](# implementation for.

Returns: ISchedulerLongRunning? -- The scheduler's ISchedulerLongRunning implementation if available; null otherwise.

Remarks

        This helper method is made available for query operator authors in order to discover scheduler services by using the required
        IServiceProvider pattern, which allows for interception or redefinition of scheduler services.