Sending events from one assembly to another

  • Thread starter Thread starter sdr
  • Start date Start date
S

sdr

Hello all,

I have a scenario where I should be able to fire an event in one
assembly and listen to it in another.

As I'm writing a proof of concept at the moment, I wrote two separate
WinForms projects. The actual case is that there are going to be two
plug-in assemblies hosted in a software I don't know much about yet.
What are my options? Is there a way to make events work in my
scenario?

TIA,

sdr
 
You need to know how your target software will load and initialize your
dlls. And without knowing that it's difficult to offer anything other than
general comments in response. When the software loads up the dll that will
subscribe to the event it needs to pass to it a reference to the object that
will be generating the event. Once you have that then you can subscribe to
the event in the normal way. But like I said, without more detail, it's hard
to give you anything concrete.

Cheers,

Adam.
 
Hello all,

I have a scenario where I should be able to fire an event in one
assembly and listen to it in another.

As I'm writing a proof of concept at the moment, I wrote two separate
WinForms projects. The actual case is that there are going to be two
plug-in assemblies hosted in a software I don't know much about yet.
What are my options? Is there a way to make events work in my
scenario?

TIA,

sdr

Whether the generator of the event and the subscriber are in the same
or different assemblies should make no difference.

I can't tell from your post if you tried something and it didn't work,
or if you are just wanting to know if it is possible.
 
Back
Top