A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Interface IServiceLocatorFactory

Signature that type specified by ServiceLocatorFactoryAttribute should implement

Namespace: EPiServer.ServiceLocation.AutoDiscovery
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public interface IServiceLocatorFactory

Methods

CreateLocator()

Creates an instance of IServiceLocator

Declaration
IServiceLocator CreateLocator()
Returns
Type Description
IServiceLocator
Remarks

The returned IServiceLocator must contain a singleton registration of itself (as IServiceLocator)

CreateProvider()

Creates an instance of IServiceConfigurationProvider

Declaration
IServiceConfigurationProvider CreateProvider()
Returns
Type Description
IServiceConfigurationProvider

Extension Methods