EventHandlerExtensionsFireAsyncT Method (EventHandlerT, Object, T) |
Fires an event in an asynchronous way. When this method returns, the event handlers may still be running.
This method will automatically check if there are any event handlers subscribed to handler and it will automatically
propagate the call the the appropriate thread.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntaxpublic static void FireAsync<T>(
this EventHandler<T> handler,
Object sender,
T e
)
where T : EventArgs
<ExtensionAttribute>
Public Shared Sub FireAsync(Of T As EventArgs) (
handler As EventHandler(Of T),
sender As Object,
e As T
)
public:
[ExtensionAttribute]
generic<typename T>
where T : EventArgs
static void FireAsync(
EventHandler<T>^ handler,
Object^ sender,
T e
)
[<ExtensionAttribute>]
static member FireAsync :
handler : EventHandler<'T> *
sender : Object *
e : 'T -> unit when 'T : EventArgs
Parameters
- handler
- Type: SystemEventHandlerT
The multicast delegate that must be executed. - sender
- Type: SystemObject
The object that triggered the event. - e
- Type: T
Any metadata that must be passed to the event handlers.
Type Parameters
- T
- The type of event args that is passed with the event.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
EventHandlerT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also