C# 클래스 Prototype.Platform.Unity.UnityDependencyResolver

Implementation of MVC 3 IDependencyResolver for MS Unity 2.0
상속: IDependencyResolver
파일 보기 프로젝트 열기: paralect/prototype

공개 메소드들

메소드 설명
GetService ( Type serviceType ) : object

"Implementers should return null when the service cannot be found. Use GetServices(Type) to return multiple services." (C) http://msdn.microsoft.com/en-us/library/system.web.mvc.idependencyresolver.getservice(v=VS.98).aspx We can check for availability of such service in container, but i don't doing it to simplify configuration for container, views, models, actions, filters etc... Simply speaking we are always using Unity to instantiate new object.

GetServices ( Type serviceType ) : IEnumerable

"Implementers should return an empty collection when no service can be found. The ASP.NET MVC framework will generate a run-time error when implementations throw an exception or return null." (C) http://msdn.microsoft.com/en-us/library/system.web.mvc.idependencyresolver.getservices(v=VS.98).aspx We can check for availability of such services in container, but i don't doing it to simplify configuration for container, views, models, actions, filters etc... Simply speaking we are always using Unity to instantiate new object.

UnityDependencyResolver ( IUnityContainer container ) : System

Initialization

메소드 상세

GetService() 공개 메소드

"Implementers should return null when the service cannot be found. Use GetServices(Type) to return multiple services." (C) http://msdn.microsoft.com/en-us/library/system.web.mvc.idependencyresolver.getservice(v=VS.98).aspx We can check for availability of such service in container, but i don't doing it to simplify configuration for container, views, models, actions, filters etc... Simply speaking we are always using Unity to instantiate new object.
public GetService ( Type serviceType ) : object
serviceType System.Type
리턴 object

GetServices() 공개 메소드

"Implementers should return an empty collection when no service can be found. The ASP.NET MVC framework will generate a run-time error when implementations throw an exception or return null." (C) http://msdn.microsoft.com/en-us/library/system.web.mvc.idependencyresolver.getservices(v=VS.98).aspx We can check for availability of such services in container, but i don't doing it to simplify configuration for container, views, models, actions, filters etc... Simply speaking we are always using Unity to instantiate new object.
public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type
리턴 IEnumerable

UnityDependencyResolver() 공개 메소드

Initialization
public UnityDependencyResolver ( IUnityContainer container ) : System
container IUnityContainer
리턴 System