Table of Contents

GetServiceDescriptors Method

Definition

Namespace
Cuemon.Extensions.DependencyInjection
Assemblies
Cuemon.Extensions.DependencyInjection.dll
Source
src/Cuemon.Extensions.DependencyInjection/ServiceProviderExtensions.cs

GetServiceDescriptors(IServiceProvider)

Gets an enumeration of ALL ServiceDescriptor instances from the specified provider.

public static IEnumerable<ServiceDescriptor> GetServiceDescriptors(this IServiceProvider provider)

Parameters

provider IServiceProvider

The IServiceProvider to extend.

Returns

IEnumerable<ServiceDescriptor>

An enumeration of ALL ServiceDescriptor instances from the specified provider.

Exceptions

NotSupportedException

This method does not support {providerType.FullName}; or a cyclic provider graph was detected.