Class ServiceCollectionExtension
- Namespace
- Arc4u.Dependency
- Assembly
- Arc4u.Dependency.dll
Extension methods on IServiceCollection to inspect the registered services.
public static class ServiceCollectionExtension
- Inheritance
-
ServiceCollectionExtension
- Inherited Members
Methods
GetImplementationType<T>(IServiceCollection)
Extract from the service collection the implementation type of the interface T.
public static Type? GetImplementationType<T>(this IServiceCollection services)
Parameters
servicesIServiceCollection
Returns
- Type
Null or the type.
Type Parameters
T