Skip to content

LocalScheduler.GetService(Type) method

Defined in

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

Applies to

netstandard2.0

protected virtual object? GetService(Type serviceType)

Summary: Discovers scheduler services by interface type. The base class implementation returns requested services for each scheduler interface implemented by the derived class. For more control over service discovery, derived types can override this method.

Parameters

NameTypeDescription
serviceTypeTypeScheduler service interface type to discover.

Returns: object? -- Object implementing the requested service, if available; null otherwise.