Diffusion .NET Classic API - Core and Common  5.9.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
PushTechnology.DiffusionCore.ExtensionMethods.Events Class Reference

Helper class for raising events. More...

Static Public Member Functions

static void Raise< T > (this EventHandler< T > handler, object sender, T args)
 Helper method to raise an event handler call. Performs null checking on the handler prior to calling. More...
 
static void RaiseAsync< T > (this EventHandler< T > handler, object sender, T args)
 Helper method to (asynchronously) raise an event handler call. Performs null checking on the handler prior to calling. More...
 

Detailed Description

Helper class for raising events.

Member Function Documentation

static void PushTechnology.DiffusionCore.ExtensionMethods.Events.Raise< T > ( this EventHandler< T >  handler,
object  sender,
args 
)
static

Helper method to raise an event handler call. Performs null checking on the handler prior to calling.

Template Parameters
T
Parameters
handler
sender
args
Exceptions
ExceptionA delegate callback throws an exception.
static void PushTechnology.DiffusionCore.ExtensionMethods.Events.RaiseAsync< T > ( this EventHandler< T >  handler,
object  sender,
args 
)
static

Helper method to (asynchronously) raise an event handler call. Performs null checking on the handler prior to calling.

Template Parameters
T
Parameters
handler
sender
args
Type Constraints
T :EventArgs