Open sandboxFocus

Delegate EventAccessor<TDelegate>

In PostSharp, this delegate allowed the run-time code of the aspect to access an event in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use invokers (e.g. IEvent.IEvent.Add) to generate run-time code for any event.

Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In PostSharp, this delegate allowed the run-time code of the aspect to access an event in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use invokers (e.g. 'IEvent'.'!:IEvent.Add') to generate run-time code for any event.", false)]
public delegate void EventAccessor<TDelegate>(TDelegate @delegate)
Parameters
Type Name Description
TDelegate delegate In PostSharp, this delegate allowed the run-time code of the aspect to access an event in the target code. In Metalama, no run-time helper is required because the template directly generates run-time code. Use invokers (e.g. .IEvent.Add) to generate run-time code for any event.
Type Parameters
Name Description
TDelegate

Constructors

Name Description
EventAccessor(object, nint)

Methods

Name Description
BeginInvoke(TDelegate, AsyncCallback, object)
EndInvoke(IAsyncResult)
Invoke(TDelegate)

Extension Methods