C# Class Cedar.Framework.Common.Client.MVC.ServiceLocatableDependencyResolver

A custom DependencyResolver which uses ServiceLocator to acticvate service.
Inheritance: IDependencyResolver
Show file Open project: Chinaccn/surfboard

Public Methods

Method Description
GetService ( Type serviceType ) : object

Gets the service.

GetServices ( Type serviceType ) : IEnumerable

Gets the services.

ServiceLocatableDependencyResolver ( string serviceLocatorName = "" ) : System

Method Details

GetService() public method

Gets the service.
public GetService ( Type serviceType ) : object
serviceType System.Type Type of the service.
return object

GetServices() public method

Gets the services.
public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type Type of the service.
return IEnumerable

ServiceLocatableDependencyResolver() public method

public ServiceLocatableDependencyResolver ( string serviceLocatorName = "" ) : System
serviceLocatorName string
return System