Click here to Skip to main content
15,888,461 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralCross post Pin
led mike28-Jan-08 7:09
led mike28-Jan-08 7:09 
GeneralRe: Cross post Pin
Arsalan Malik29-Jan-08 1:24
Arsalan Malik29-Jan-08 1:24 
GeneralRemoting and events Pin
bwilhite28-Jan-08 3:14
bwilhite28-Jan-08 3:14 
GeneralRe: Remoting and events Pin
led mike28-Jan-08 6:57
led mike28-Jan-08 6:57 
GeneralRe: Remoting and events Pin
bwilhite28-Jan-08 8:21
bwilhite28-Jan-08 8:21 
GeneralRe: Remoting and events Pin
bwilhite28-Jan-08 14:04
bwilhite28-Jan-08 14:04 
GeneralRe: Remoting and events Pin
Joachim Kerschbaumer6-Feb-08 4:24
Joachim Kerschbaumer6-Feb-08 4:24 
GeneralRe: Remoting and events Pin
bwilhite6-Feb-08 10:10
bwilhite6-Feb-08 10:10 
Thanks. That seems to be pretty much what I ended up doing. The article I was going off of called it an event shim. One thing that isn't really clear to me is why the wrapper/shim works. In other words, you can't just do

<br />
service.OnLogData += handler_formyevent;


You have to give it to the wrapper, which can subscribe (why, I'm not entirely sure), and then subscribe to the events that it raises.

<br />
MyEventWrapper w = new MyEventWrapper();<br />
<br />
service.OnLogData += w.WrapperMessagehandler;<br />
w.OnWrapperMessage += handler_formyevent;


hmmm...is it because the wrapper is known to both assemblies that it works, whereas doing it the other way, the service isn't really aware of the subscriber? So in the scenario where it doesn't really know about the subscriber it can't grab a remote reference to it, so that it can marshal the events over?

I hope that makes sense...is it correct?

BW
Generalabout web services Pin
dSolariuM27-Jan-08 2:39
dSolariuM27-Jan-08 2:39 
GeneralRe: about web services Pin
Paul Conrad27-Jan-08 10:28
professionalPaul Conrad27-Jan-08 10:28 
GeneralRe: about web services Pin
pmarfleet27-Jan-08 12:04
pmarfleet27-Jan-08 12:04 
GeneralRe: about web services Pin
bwilhite28-Jan-08 3:21
bwilhite28-Jan-08 3:21 
GeneralTable Adapter Weirdness Pin
#realJSOP25-Jan-08 9:57
mve#realJSOP25-Jan-08 9:57 
GeneralRe: Table Adapter Weirdness Pin
Paul Conrad25-Jan-08 11:25
professionalPaul Conrad25-Jan-08 11:25 
GeneralRe: Table Adapter Weirdness Pin
#realJSOP25-Jan-08 11:38
mve#realJSOP25-Jan-08 11:38 
GeneralRe: Table Adapter Weirdness Pin
Paul Conrad26-Jan-08 7:21
professionalPaul Conrad26-Jan-08 7:21 
GeneralRe: Table Adapter Weirdness Pin
led mike28-Jan-08 6:40
led mike28-Jan-08 6:40 
GeneralRe-using Code Pin
#realJSOP25-Jan-08 5:09
mve#realJSOP25-Jan-08 5:09 
GeneralRe: Re-using Code Pin
Tristan Rhodes25-Jan-08 5:31
Tristan Rhodes25-Jan-08 5:31 
GeneralRe: Re-using Code Pin
#realJSOP25-Jan-08 5:50
mve#realJSOP25-Jan-08 5:50 
GeneralRe: Re-using Code Pin
Tristan Rhodes25-Jan-08 6:07
Tristan Rhodes25-Jan-08 6:07 
GeneralRe: Re-using Code Pin
led mike25-Jan-08 6:59
led mike25-Jan-08 6:59 
GeneralRe: Re-using Code Pin
Luc Pattyn25-Jan-08 7:29
sitebuilderLuc Pattyn25-Jan-08 7:29 
GeneralRe: Re-using Code Pin
led mike25-Jan-08 7:48
led mike25-Jan-08 7:48 
GeneralRe: Re-using Code Pin
Kschuler25-Jan-08 8:17
Kschuler25-Jan-08 8:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.