November Happy Hour will be moved to Thursday December 5th.

Class ServiceAccessor<TService>

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

Inheritance
System.Object
ServiceAccessor<TService>
Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public sealed class ServiceAccessor<out TService> : MulticastDelegate
Type Parameters
Name Description
TService

The type of service to access.

Constructors

ServiceAccessor(Object, IntPtr)

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

Invoke()

Declaration
public virtual TService Invoke()
Returns
Type Description
TService

Extension Methods