Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

On certain specific events on web server, the clients need to be notified. Is there any kind of readily available event engine to be used with C# 4.0.

Preeti
Posted

There are a few that come up when you do a search on the internet, but since I have no idea about any of them I will not comment here.

In general, to build a notification engine, you could use one of a number of options
1) Sockets (simple and easy to maintain for intranet applications)
2) Message queueing
3) Web services (with or without polling mechanism)

There are other options as well. You need to choose one based on the your requirements.
 
Share this answer
 
I remember that there is some notification engine readily available with microsoft...but i do not remember the exact library as of now... any idea?
 
Share this answer
 
Strictly speaking, sending notification from server to client goes away from the client-server paradigm, which is very good. To me the client-server paradigm looks very limiting.

What you need is related to inversion of control, please see http://en.wikipedia.org/wiki/Inversion_of_control[^].

One of the paradigms with server notification is publisher-subscriber, see http://en.wikipedia.org/wiki/Publish/subscribe[^].

You can find one of the ideas its most simple implementation in my past solution: Multple clients from same port Number[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900