Table of Contents

Class ServiceLocator

Namespace
Savvyio.Dispatchers
Assembly
Savvyio.Core.dll

Provides a default implementation of the IServiceLocator interface.

public class ServiceLocator : IServiceLocator
Inheritance
Object
ServiceLocator
Implements

Constructors

ServiceLocator(Func<Type, IEnumerable<Object>>)

Initializes a new instance of the ServiceLocator class.

public ServiceLocator(Func<Type, IEnumerable<object>> serviceFactory)

Parameters

serviceFactory Func<Type, IEnumerable<Object>>

The function delegate that provides the services.

Methods

GetServices(Type)

Get an enumeration of services of type serviceType.

public IEnumerable<object> GetServices(Type serviceType)

Parameters

serviceType Type

An object that specifies the type of service object to get.

Returns

IEnumerable<Object>

An enumeration of services of type serviceType.

See Also