ServiceProviderKeyedServiceExtensions
Extension methods for getting services from an IServiceProvider.
Get service of type T from the IServiceProvider.
Get an enumeration of services of type T from the IServiceProvider.
public static IEnumerable<object> GetKeyedServices(this IServiceProvider provider, Type serviceType, object serviceKey)
Get an enumeration of services of type serviceType from the IServiceProvider.
public static object GetRequiredKeyedService(this IServiceProvider provider, Type serviceType, object serviceKey)
Get service of type serviceType from the IServiceProvider.
Get service of type T from the IServiceProvider.