Table of Contents

Class ServiceLocator

Namespace
Dynamicweb.Extensibility
Assembly
Dynamicweb.Extensibility.dll
This class provides the ambient container for this application. If your framework defines such an ambient container, use ServiceLocator.Current to get it.
public static class ServiceLocator
Inheritance
ServiceLocator
Inherited Members

Properties

Current

The current ambient container.
public static IServiceLocator Current { get; }

Property Value

IServiceLocator

Internal

public static IServiceLocator Internal { get; set; }

Property Value

IServiceLocator

Methods

SetLocatorProvider(ServiceLocatorProvider)

Set the delegate that is used to retrieve the current container.
public static void SetLocatorProvider(ServiceLocatorProvider newProvider)

Parameters

newProvider ServiceLocatorProvider
Delegate that, when called, will return the current ambient container.
To top