Re: Remoting and Events with VB.NET
From: Sunny (sunnyask_at_icebergwireless.com)
Date: 04/05/04
- Next message: Sunny: "Re: Transparent Proxy Problem."
- Previous message: Sunny: "Re: SQL Comms in Remoting"
- In reply to: k: "Re: Remoting and Events with VB.NET"
- Next in thread: User: "Re: Remoting and Events with VB.NET"
- Reply: User: "Re: Remoting and Events with VB.NET"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Apr 2004 10:22:57 -0500
Hi k.,
please read my answer to Kris. When you register the listener with +=
the object is passed, not an interface, so you still have to have the
object implementation on both places. If you want to avoid it, use
wrapper as I described.
Sunny
In article <84c50396.0404021439.5b34d8ce@posting.google.com>,
k@qwirk.net says...
> Kris Sheglova <kris@setupsite.com> wrote in message news:<uznMrX8FEHA.1272@TK2MSFTNGP12.phx.gbl>...
>
> >
> > This seems to be a nuisance, it prevents me using the object directly
> > from say a windows form without wrapping the object in another class???
> >
> > Regards,
> >
> > Kris Sheglova
> >
> >
> I'm having a similar issue. I've pulled out the everything into a
> bunch of intefaces:
> ISaveble raises Saved Event
> IDeletable raises Deleted Event
> etc.
>
> And then have Listener Interfaces
> ISavebleListener has a function OnSaved
> etc.
>
> The Interfaces are stored in a third dll project which is referenced
> by both the client and the server. All communication is done through
> the interfaces. So I have a Usercontrol object that implements the
> correct listener interface. But when I try to register the Listener I
> get the "Cannot find Assembly" error referencing the Client.exe.
>
> k.
>
- Next message: Sunny: "Re: Transparent Proxy Problem."
- Previous message: Sunny: "Re: SQL Comms in Remoting"
- In reply to: k: "Re: Remoting and Events with VB.NET"
- Next in thread: User: "Re: Remoting and Events with VB.NET"
- Reply: User: "Re: Remoting and Events with VB.NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|