C# Class App.Web.CustomDependencyResolver

Defines the methods that simplify service location and dependency resolution.
Inheritance: IDependencyResolver
Afficher le fichier Open project: rialib/webapp

Méthodes publiques

Méthode Description
CustomDependencyResolver ( IUnityContainer container ) : System

Initializes a new instance of the CustomDependencyResolver class.

GetService ( Type serviceType ) : object

Resolves singly registered services that support arbitrary object creation.

GetServices ( Type serviceType ) : IEnumerable

Resolves multiply registered services.

Method Details

CustomDependencyResolver() public méthode

Initializes a new instance of the CustomDependencyResolver class.
public CustomDependencyResolver ( IUnityContainer container ) : System
container IUnityContainer The Unity container.
Résultat System

GetService() public méthode

Resolves singly registered services that support arbitrary object creation.
public GetService ( Type serviceType ) : object
serviceType System.Type The type of the requested service or object.
Résultat object

GetServices() public méthode

Resolves multiply registered services.
public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type The type of the requested services.
Résultat IEnumerable