Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Delegate ServiceLocatorProvider

This delegate type is used to provide a method that will return the current container. Used with the ServiceLocator static accessor class.

Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public delegate IServiceLocator ServiceLocatorProvider();
Returns
Type Description
IServiceLocator

An IServiceLocator.

Remarks

Constructors

ServiceLocatorProvider(Object, IntPtr)

Declaration
public ServiceLocatorProvider(object object, IntPtr method)
Parameters
Type Name Description
System.Object object
System.IntPtr method

Methods

BeginInvoke(AsyncCallback, Object)

Declaration
public virtual IAsyncResult BeginInvoke(AsyncCallback callback, object object)
Parameters
Type Name Description
System.AsyncCallback callback
System.Object object
Returns
Type Description
System.IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public virtual IServiceLocator EndInvoke(IAsyncResult result)
Parameters
Type Name Description
System.IAsyncResult result
Returns
Type Description
IServiceLocator

Invoke()

Declaration
public virtual IServiceLocator Invoke()
Returns
Type Description
IServiceLocator

Extension Methods