Table of Contents

Class ServiceProviderExtensions

Namespace
Microsoft.Extensions.Hosting
Assembly
nanoFramework.Hosting.dll

Extension methods for IServiceProvider.

public static class ServiceProviderExtensions
Inheritance
ServiceProviderExtensions
Inherited Members

Methods

GetHostedServices(IServiceProvider)

Retrieve an array of IHostedService that have been registered with the IServiceProvider.

public static IHostedService[] GetHostedServices(this IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

Returns

IHostedService[]

An array of IHostedService.