Table of Contents

Class ServiceProviderExtensions

Namespace
Cuemon.Extensions.DependencyInjection
Assembly
Cuemon.Extensions.DependencyInjection.dll

Extension methods for the IServiceProvider interface.

public static class ServiceProviderExtensions
Inheritance
ServiceProviderExtensions

Methods

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

Validator
NotSupportedException

This method does not support {providerType.FullName}.