Hi Ananth,
Events are sequentially invoked. If any delegated method throws an
exception the calling sequence is aborted and the exception is passed to
calling class. This can be invoked synchronously or asynchronously. In the
first case, the "invocation" will be execute on current thread, meaning that
the caller will be blocked during the execution, until all delegated methos
be executed.
In the second way you call BeginInvoke, wich will queue the invocation
and return immediately. the caller may perform anything else and in the
menawhile, the invocation will be executed in a separete thread, in a thread
from the thread pool. If the caller needs to be informed about the results
of the invokation it can define a callback function.
Cheers,
Eric.
"Ananth" <an*****@gmail.com> escreveu na mensagem
news:d1**************************@posting.google.c om...
I had a question regarding C# events. When an event is raised are the
event handlers invoked in separate threads or are they sequentially
invoked?