Click here to Skip to main content
13,145,068 members (57,065 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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?
Posted 21-Apr-11 22:49pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

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?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 23 Apr 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100