Re: Remoting and Events with VB.NET

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Sunny (sunnyask_at_icebergwireless.com)
Date: 04/05/04


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.
>



Relevant Pages

  • Re: Problems with Listener after patching to 10.2.0.2.0
    ... I need 3 listeners, and I remove the default listener first. ... Suitable interfaces for the private interconnect on subnet "10.0.0.0": ... Suitable interfaces for the private interconnect on subnet "10.231.175.0": ... valid_lft forever preferred_lft forever ...
    (comp.databases.oracle.server)
  • Re: Passing Variable from One class to another, using an ActionListener
    ... is for the text of the Username and Password textboxes in the Main ... Class to be sent through the Event Listener and on to the Processing ... Interfaces are more work because it involves more classes, ...
    (comp.lang.java.help)
  • Re: Generics in 1.5, nonsense warnings?
    ... exactly one Class object. ... only way I can use EventListenerList.add(Class<T extends EventListener> c, T l) and removemethods. ... Can you suggest a correct way to call these methods when the listener l is often an object of a subclass of EventListener? ... Even if you did something odd by retrieving implemented interfaces, event listeners often implement a number of listener interfaces for different purposes. ...
    (comp.lang.java.programmer)
  • Re: ISA2004 - multiple external interfaces
    ... The fact itself that the listener does 'see' all IPs on all the ISA ... ISA interfaces with DG property, ... > Listener config does indeed see addresses from both interfaces but I guess ...
    (microsoft.public.isa)
  • Re: VxWorks 6.6 - Ethernet interface driver support
    ... electrical Ethernet interfaces with optical Ethernet ... interfaces (DSS PMC card), so I wanted to disable the Generic PHY ... driver would result in removing also the Intel PRO/ ... CTRL register bit LRST is set ...
    (comp.os.vxworks)