DependencyResolverExtensions DependencyResolverExtensions DependencyResolverExtensions Class

Definition

Provides a type-safe implementation of GetService(Type) and GetServices(Type).

public static class DependencyResolverExtensions
type DependencyResolverExtensions = class
Public Module DependencyResolverExtensions
Inheritance
DependencyResolverExtensionsDependencyResolverExtensionsDependencyResolverExtensions

Methods

GetService<TService>(IDependencyResolver) GetService<TService>(IDependencyResolver) GetService<TService>(IDependencyResolver)

Resolves singly registered services that support arbitrary object creation.

GetServices<TService>(IDependencyResolver) GetServices<TService>(IDependencyResolver) GetServices<TService>(IDependencyResolver)

Resolves multiply registered services.

Applies to