C# Class App.Web.CustomDependencyResolver

Defines the methods that simplify service location and dependency resolution.
Inheritance: IDependencyResolver
Show file Open project: rialib/webapp

Public Methods

Method 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 method

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

GetService() public method

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.
return object

GetServices() public method

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