Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have wcf aplication that send sms with gsm modem i use dll component logix mobile site

this dll have a event delegate "newmessagerecive" that raise when sms recive

i use this event in wcf application but dont work when windows applicaton that comunicate with wcf is clode do not work.

where use this event that work always?
thanks
Posted

You can't set up an event that will work when the application is closed - you can but then you are looking at writing device drivers, which is a whole new layer of complexity.

Instead, look at writing a windows service, which monitors for incoming messages and activates your main app to handle them.
 
Share this answer
 
Comments
mehdiattar 22-Apr-11 7:56am    
hi orginalGriff
i have an windows application that comunicate with wcf application that hosted in iis6 on the server.
the "NEW MESSAGE RECIVE" EVENT WIRTEED IN GLOBAL.ASAX FILE AND IN APPLICATION START SECTION THAT WHEN APPLICATION IS START, THIS EVENT CREATED IN RAM MEMORY BUT I DO NOT KNOW Why this enevt worked while my windows application is run on the client.when windows application is close this event do not work.

this event write in witch section wcf that work
You could have a small listening client app that runs each time the user logs in. If the WCF client is not open, the WCF service should communicate to the listening client app (perhaps again via WCF) and then this listener can launch the full WCF client. Make sure the listener has no UI and is not easily closed. That way the end-user will not accidentally close it. The listener's only purpose would be to launch the client when the client is not currently running.
 
Share this answer
 
hi Nishant Sivakumar

i want this event write in wcf application. with out intermediary windows application.

is it possible this event work good in wcf?
thanks
 
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