Open sandboxFocus

Namespace Metalama.Framework.RunTime.Events

Classes

DelegateEventAdapter<TDelegate, TArgs, TState>

An implementation of IEventAdapter<TDelegate, TArgs, TState> based on delegates.

EventBroker

Exposes a method that initializes an EventBroker<TDelegate, TArgs, TState>.

EventBroker<TDelegate, TArgs, TState>

Manages event handlers for event override advice when raise templates are specified. Provides thread-safe operations for adding/removing handlers and event invocation.

Interfaces

IEventAdapter<TDelegate, TArgs, TState>

A bidirectional adapter between an event, with an arbitrary, and an EventBroker<TDelegate, TArgs, TState>, where all arguments and return values are packed in a single tuple.

Delegates

EventHandlerInvocationCallback<TDelegate, TArgs, TState>

Delegate for the implementation of the InvokeHandler(TDelegate, ref TArgs, TState) method by DelegateEventAdapter<TDelegate, TArgs, TState>.