Reputation: 6685
I need a way to trigger events on remote processes "over the wire" and pass parameters (xml serialization, whatever). I want to be able to do things like this.
foreach(childClient c in clientList)
{
MyEvent += c.EventHandler;
}
MyEvent("param");
what technologies are good for this? WCF?
This is a small deployment in house software project so minimal overhead in design is a plus, doesn't have to be "fast" and won't handle large amounts of traffic.
Upvotes: 3
Views: 150
Reputation: 47462
There are a number of ways of doing this, but WCF is the best match for .NET code. If you are in-house then hopefully firewalls, etc aren't too much of a concern, and you can use the NET.TCP bindings which are full duplex. You want to read up on callback contracts.
There are a number of examples out there, such as this one.
Upvotes: 6