![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Knowing when a service dies Hello Newsgroup, I wonder how one would write wcf proxy code that is being notified when the connected service channel is being closed (service process ends for example). I was subscribing the Channels and the Duplex Channels Closing and Closed events but these have never been fired. Any idea on that? Thanks for you help! Sebastian |
| | #2 (permalink) | ||||||||||||
| Guest | Re: Knowing when a service dies hi, try following way YourServiceCF = new ChannelFactory<IYourService> (...........................); IYourService client = YourServiceCF .CreateChannel(); ((ICommunicationObject)client).Faulted += new EventHandler(Faulted); or ((ICommunicationObject)client).Closed += new EventHandler(Faulted); hope this help. thanks nahid http://nahidulkibria.blogspot.com/ On May 2, 8:40*pm, "sebastian....@xxxxxx" <sebastian....@xxxxxx> wrote:
| ||||||||||||
| | #3 (permalink) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Guest | Re: Knowing when a service dies On May 7, 11:51 am, Nahid <nahid...@xxxxxx> wrote:
that worked as required. Best Regards, Sebastian | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |
| |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Computer dies | Viv | Vista hardware & devices | 5 | 4 Weeks Ago 12:01 PM |
| Knowing when a WCF service dies... | sebastian.dau | .NET General | 0 | 05-03-2008 03:24 AM |
| wmplayer dies not unload | keepout | Vista General | 14 | 12-21-2007 03:32 AM |
| wmp sharing dies after 5-10 songs | EdB | Vista music pictures video | 0 | 12-06-2006 12:03 AM |
| Knowing version installed | Jaisol | Vista General | 5 | 10-14-2006 08:00 AM |