Table of Contents

Class MefServiceLocator

Namespace
Dynamicweb.Extensibility.Providers
Assembly
Dynamicweb.Extensibility.dll
Class MefServiceLocator contains Dynamicwebs implementation of a service locator based on MEF.
[Obsolete("Is not used. Provides backward compatibility.")]
public class MefServiceLocator : ServiceLocator, IServiceLocator, IServiceProvider
Inheritance
MefServiceLocator
Implements
Inherited Members

Constructors

MefServiceLocator(ExportProvider)

Initializes a new instance of the MefServiceLocator class.
public MefServiceLocator(ExportProvider provider)

Parameters

provider ExportProvider
The provider.
See Also

Methods

DoGetAllInstances(Type)

When implemented by inheriting classes, this method will do the actual work of resolving all the requested service instances.
protected override IEnumerable<object> DoGetAllInstances(Type serviceType)

Parameters

serviceType Type
Type of service requested.

Returns

IEnumerable<object>
Sequence of service instance objects.
See Also

DoGetInstance(Type, string)

When implemented by inheriting classes, this method will do the actual work of resolving the requested service instance.
protected override object DoGetInstance(Type serviceType, string key)

Parameters

serviceType Type
Type of instance requested.
key string
Name of registered service you want. May be null.

Returns

object
The requested service instance.

Exceptions

ActivationException
See Also

See Also

To top