PDA

View Full Version : AbstractApplicationContext.Close method


jjx
11-15-2004, 01:50 AM
ContextClosed(this,new ApplicationEventArgs());

right?

if (ContextClosed!=null)
ContextClosed(this,new ApplicationEventArgs());

Mark Pollack
11-15-2004, 04:36 AM
Hi,

Thanks again! I have made the change in CVS. Looking into this did bring up the issue of thread safety and firing of an event which we will investigate further. For some interesting reading on this check out Jay Bazuzi's blog entries:

Safely Firing an Event (http://blogs.msdn.com/jaybaz_ms/archive/2004/03/19/92787.aspx)
Safely Firing an Event, Part 2 (http://blogs.msdn.com/jaybaz_ms/archive/2004/06/17/158636.aspx)
Safely Firing an Event, Part 3 (http://blogs.msdn.com/jaybaz_ms/archive/2004/09/16/230681.aspx)


Cheers,
Mark