C# Class Prototype.Platform.Unity.UnityServiceLocator

Inheritance: ServiceLocatorImplBase
显示文件 Open project: paralect/prototype

Public Methods

Method Description
UnityServiceLocator ( IUnityContainer container ) : System

Protected Methods

Method Description
DoGetAllInstances ( Type serviceType ) : IEnumerable

When implemented by inheriting classes, this method will do the actual work of resolving all the requested service instances.

DoGetInstance ( Type serviceType, string key ) : object

When implemented by inheriting classes, this method will do the actual work of resolving the requested service instance.

Method Details

DoGetAllInstances() protected method

When implemented by inheriting classes, this method will do the actual work of resolving all the requested service instances.
protected DoGetAllInstances ( Type serviceType ) : IEnumerable
serviceType System.Type Type of service requested.
return IEnumerable

DoGetInstance() protected method

When implemented by inheriting classes, this method will do the actual work of resolving the requested service instance.
protected DoGetInstance ( Type serviceType, string key ) : object
serviceType System.Type Type of instance requested.
key string Name of registered service you want. May be null.
return object

UnityServiceLocator() public method

public UnityServiceLocator ( IUnityContainer container ) : System
container IUnityContainer
return System