Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 21-Apr-11 23:49pm
Rate this: bad
good
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.
  Permalink  
Comments
mehdiattar at 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
good
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.
  Permalink  
Rate this: bad
good
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?
thanks
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 410
1 Jochen Arndt 200
2 Richard MacCutchan 135
3 DamithSL 105
4 PIEBALDconsult 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 23 Apr 2011
Copyright © CodeProject, 1999-2014
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