Event Problem in .NET Remoting -


After learning from INGO RAMMER's "Advanced .NET Remoting", I tried to use the following code for firing events to the client:

P>

  foreach (Authorized Daylight Dell in Message. GetInvocationList ()) {try {mah = (MessageArrivedHandler) del; MAh (message); } Hold (exception e) {Console.WriteLine ("An exception occurred, representative will be removed"); Message Received - = Meh; }}  

When I simulate a network problem in the client side, the client's representative was omitted as expected - =, and MessageArveded became zero < / P>

But as soon as the network is restored, the customer will try to get connected, get a remote object and re-register because this is the case for startup, it seems that the reader was successful because the message received Not was not worthless.

The problem I was still receiving the exception was the representative who was then removed as I think, this exclusion will not increase the cause. Connect the client online again and again () and connect () method share the same code ...

Can someone help me?

Check if events are being canceled or not. When the client is disconnected, it is better to ignore the event honestly.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -