SaaS CMS has officially launched! Learn more now.

Class 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.

Inheritance
System.Object
ServiceCollectionAccessor<TService>
Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public sealed class ServiceCollectionAccessor<out TService> : MulticastDelegate
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>

Extension Methods