Remote Eventing Example Required

N

News-West

Hi,

I have foolishly got myself caught up in coding a pretty simple app in c#,
on the back of very little experience of the language. At the heart of the
app, is a remote server, which fires events of various types when particular
circumstances arise - around this server, I need a variety of clients, each
of which will be interested in one or more of the event types fired by the
server - so a group of clients in a network subscribing to events generated
remotely.

I would like to define an library containing abstract event types, and
implement them only where required (I don't want to reference the server
assembly in my clients - only the abstract library) It seems a common
scenario, and I'm sure there are people who do exactly this every day, but I
simply cannot find a good example on the web - the one I initially modelled
from was posted at http://www.codeproject.com/csharp/csRemoteEvents1.asp,
but I couldn't get it to work - probably because I couldn't correlate my
configuration settings with the code presented - but surely there is another
sample somewhere? (please don't point me atthe MSDN samples - the model
there is so contrived, and non-typical that it is almost useless).

Thanks in advance.
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

Events over remoting are actually "remoting in reverse" - your client has to
become remoting servers themselves in order to receive events.
When I faced such a situation, I decided to use named pipes instead - no
managed code support but still less hassle.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top