Class ServiceProviderExtensions
- 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
IServiceProviderThe 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}.