Delegate DependencyGetter<TDependency>
A delegate for a method that returns a dependency resolved at runtime.
The delegate is used to retrieve singletons without directly depending
on their static instance. This delegate is used internally by EPiServer.
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
[Obsolete("This way of retrieving dependencies is no longer supported. Please find another way to get them.", true)]
public delegate TDependency DependencyGetter<TDependency>();
Returns
Type |
Description |
TDependency |
An object isntance.
|
Type Parameters
Name |
Description |
TDependency |
The type of dependency the delegate returns.
|
Constructors
DependencyGetter(Object, IntPtr)
Declaration
public DependencyGetter(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 TDependency EndInvoke(IAsyncResult result)
Parameters
Type |
Name |
Description |
System.IAsyncResult |
result |
|
Returns
Type |
Description |
TDependency |
|
Invoke()
Declaration
public virtual TDependency Invoke()
Returns
Type |
Description |
TDependency |
|