Delegate ServiceCollectionAccessor<TService>

Represents a method used to resolve all services at runtime. During initializing a typed accessor is registered for each service configured using ServiceConfigurationAttribute.

Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
public delegate IEnumerable<TService> ServiceCollectionAccessor<out TService>();
Returns
Type Description
System.Collections.Generic.IEnumerable<TService>

An instance of the service resolved at runtime.

Type Parameters
Name Description
TService

The type of service to access.

Constructors

ServiceCollectionAccessor(Object, IntPtr)

Declaration
public ServiceCollectionAccessor(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 IEnumerable<TService> EndInvoke(IAsyncResult result)
Parameters
Type Name Description
System.IAsyncResult result
Returns
Type Description
System.Collections.Generic.IEnumerable<TService>

Invoke()

Declaration
public virtual IEnumerable<TService> Invoke()
Returns
Type Description
System.Collections.Generic.IEnumerable<TService>