David,
You're correct about the EventArgs, they must be serializable, but I'm kind of unclear 
about the rest of your question.  Are you not receiving the events in the other 
classes?

Don


-----Original Message-----
From: David Williams [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 30, 2002 11:33 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Starting Remoting and Events


I am trying to get started using remoting.  The application design that we came up 
with uses events to pass messages from one application to the other (in theory).  I 
have spent the last day reading up on remoting (as I have to implement a (1-5) 
server(s) to (10-500) clients environment. (Numbers here represent the numbers of each 
type of application.  They will be the same program, just in different locations.)  
The problem that I have is understanding the details of how to do what I want to do.

I want to pass just events, using the standard .NET event structures.  I.E.

Public Event X(ByVal sender As Object,  ByVal e As XEventArgs)

I gather the following...

XEventArgs must either A)  have the <Serializable> attribute, or  B) Implement 
ISerializable.  No problem, as it is a very small structure of base types.  (Integers 
and Strings).

But, that is as far as I could wrap my brain around it.  Any suggestions/advise on 
where to go from here?

David Williams
You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to