Click here to Skip to main content
15,913,941 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Windows Application Pin
Christian Graus2-Jun-05 10:40
protectorChristian Graus2-Jun-05 10:40 
GeneralRe: Windows Application Pin
toxcct1-Jun-05 23:10
toxcct1-Jun-05 23:10 
GeneralRe: Windows Application Pin
DavidNohejl2-Jun-05 1:13
DavidNohejl2-Jun-05 1:13 
GeneralUsing Events with an Asyncronous Remote Process Pin
markike091-Jun-05 4:23
markike091-Jun-05 4:23 
GeneralRe: Using Events with an Asyncronous Remote Process Pin
S. Senthil Kumar1-Jun-05 5:04
S. Senthil Kumar1-Jun-05 5:04 
GeneralRe: Using Events with an Asyncronous Remote Process Pin
markike091-Jun-05 6:00
markike091-Jun-05 6:00 
GeneralRe: Using Events with an Asyncronous Remote Process Pin
markike091-Jun-05 10:20
markike091-Jun-05 10:20 
GeneralRe: Using Events with an Asyncronous Remote Process Pin
S. Senthil Kumar2-Jun-05 1:32
S. Senthil Kumar2-Jun-05 1:32 
I see. I guess you're removing the event handlers when the client closes. But what will you do if there are 5 clients for your singleton object and the first subscriber's event handler throws an exception?

I'd suggest manually invoking the event within a try catch block. Something like
protected void OnEventOccurred(...)
{
   
   if (eventHandler == null)
	return;

   Delegate []delegateList = eventHandler.GetInvocationList();
   foreach(MessageReceivedEventHandler handler in delegateList)
   {
      try
      {
         handler(this, args);
      }
      catch(Exception e)
      {
         //Log e
      }	
   }	
}


Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: Using Events with an Asyncronous Remote Process Pin
markike092-Jun-05 4:27
markike092-Jun-05 4:27 
QuestionCheck inputs into Setup Project dialogs? Pin
mav.northwind31-May-05 22:42
mav.northwind31-May-05 22:42 
GeneralReading Outlook Calendar's Pin
KaptinKrunch31-May-05 18:45
KaptinKrunch31-May-05 18:45 
QuestionHow to measure execution time ? Pin
SlavaFromUkraine31-May-05 12:35
SlavaFromUkraine31-May-05 12:35 
AnswerRe: How to measure execution time ? Pin
Christian Graus31-May-05 12:43
protectorChristian Graus31-May-05 12:43 
GeneralRe: How to measure execution time ? Pin
Colin Angus Mackay31-May-05 22:16
Colin Angus Mackay31-May-05 22:16 
GeneralRe: How to measure execution time ? Pin
Christian Graus31-May-05 22:21
protectorChristian Graus31-May-05 22:21 
GeneralRe: How to measure execution time ? Pin
SlavaFromUkraine1-Jun-05 0:01
SlavaFromUkraine1-Jun-05 0:01 
AnswerRe: How to measure execution time ? Pin
S. Senthil Kumar31-May-05 22:56
S. Senthil Kumar31-May-05 22:56 
AnswerRe: How to measure execution time ? Pin
Robert Rohde1-Jun-05 11:02
Robert Rohde1-Jun-05 11:02 
GeneralRe: How to measure execution time ? Pin
SlavaFromUkraine2-Jun-05 5:30
SlavaFromUkraine2-Jun-05 5:30 
AnswerRe: How to measure execution time ? Pin
SlavaFromUkraine2-Jun-05 5:10
SlavaFromUkraine2-Jun-05 5:10 
Generalusing visual studio.net and mathLab Pin
mr_rain31-May-05 8:44
mr_rain31-May-05 8:44 
GeneralRe: using visual studio.net and mathLab Pin
Christian Graus31-May-05 12:49
protectorChristian Graus31-May-05 12:49 
GeneralAccessing Legacy Systems Pin
Member 200680131-May-05 0:39
Member 200680131-May-05 0:39 
GeneralAccessing Phone Functionality Pin
redlucky8830-May-05 20:22
redlucky8830-May-05 20:22 
GeneralConnecting to an External Access database Pin
Jag_K30-May-05 5:07
Jag_K30-May-05 5:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.