I have not gotten that far yet. Yes, I want to be able to receive them
just as I would if the class exposing them was in the same assembly. I
just do not fully understand how to do this.
My first run attempt to accomplish this was to create a TCPChannel class in
both assemblies and handle them there. Then I started re-reading some of
the threads on this here, and thought that this would be a good use of
remoting. So, I read up on remoting. Just having a hard time figuring out
what parts to follow to accomplish the (I think!) small form of remoting
that I want to do.
David Williams
Senior Developer
Strohl Systems
|---------+------------------------------------->
| | "Browning, Don" |
| | <[EMAIL PROTECTED]> |
| | Sent by: "Moderated |
| | discussion of advanced |
| | .NET topics." |
| | <[EMAIL PROTECTED]|
| | EVELOP.COM> |
| | |
| | |
| | 05/30/2002 12:26 PM |
| | Please respond to |
| | "Moderated discussion of |
| | advanced .NET topics." |
| | |
|---------+------------------------------------->
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Subject: Re: [ADVANCED-DOTNET] Starting Remoting and Events
|
>--------------------------------------------------------------------------------------------------------------------------------------------------|
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.
You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.