Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - WCF async model and dead client

 
 
Old 11-26-2006   #1 (permalink)
pavel.orehov@gmail.com


 
 

WCF async model and dead client

Hi,

I am using WCF with async model.

Now I have the problem to identify if the client is dead in this model.

In sync model if the client dead, function call just throws exception.
But in async model call to begin* method always succeed, either client
alive or dead. Only the end* method does not called if the client is
dead.

So how can I identify if the client is dead in simple way before
calling the begin* method ?

Thanks,
Pavel


My System SpecsSystem Spec
Old 11-26-2006   #2 (permalink)
Arkady Frenkel


 
 

Re: WCF async model and dead client

Hi!
Async model in WCF is model when client talk asynchoneously with WCF layer
and service know nothing about that.
Do you mean that on return service function receive exception if client
disappear during execution ?
Because on call even in dual binding service don't know nothing about client
death and WCF layer don't tell to service about that
Arkady


<pavel.orehov@gmail.com> wrote in message
news:1164536261.287986.70280@l12g2000cwl.googlegroups.com...
> Hi,
>
> I am using WCF with async model.
>
> Now I have the problem to identify if the client is dead in this model.
>
> In sync model if the client dead, function call just throws exception.
> But in async model call to begin* method always succeed, either client
> alive or dead. Only the end* method does not called if the client is
> dead.
>
> So how can I identify if the client is dead in simple way before
> calling the begin* method ?
>
> Thanks,
> Pavel
>



My System SpecsSystem Spec
Old 11-26-2006   #3 (permalink)
Arkady Frenkel


 
 

Re: WCF async model and dead client

BTW that's why dual usually have to be Oneway operation contract, but really
that can have blocked too
http://blogs.msdn.com/ralph.squillac...e/2006/08.aspx
Arkady

"Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
news:%23aF470VEHHA.3396@TK2MSFTNGP02.phx.gbl...
> Hi!
> Async model in WCF is model when client talk asynchoneously with WCF layer
> and service know nothing about that.
> Do you mean that on return service function receive exception if client
> disappear during execution ?
> Because on call even in dual binding service don't know nothing about
> client death and WCF layer don't tell to service about that
> Arkady
>
>
> <pavel.orehov@gmail.com> wrote in message
> news:1164536261.287986.70280@l12g2000cwl.googlegroups.com...
>> Hi,
>>
>> I am using WCF with async model.
>>
>> Now I have the problem to identify if the client is dead in this model.
>>
>> In sync model if the client dead, function call just throws exception.
>> But in async model call to begin* method always succeed, either client
>> alive or dead. Only the end* method does not called if the client is
>> dead.
>>
>> So how can I identify if the client is dead in simple way before
>> calling the begin* method ?
>>
>> Thanks,
>> Pavel
>>

>
>



My System SpecsSystem Spec
Old 11-26-2006   #4 (permalink)
pavel.orehov@gmail.com


 
 

Re: WCF async model and dead client

Very sad.

Well, I will add my logic to identify client death.

Some timeout to response, and so on ...

Thanks,
Pavel

My System SpecsSystem Spec
Old 12-12-2006   #5 (permalink)
Sara Wong - MSFT


 
 

Re: WCF async model and dead client

Hi Pavel,

If you are using sessionful channel (e.g. TCP, ReliableMessaging), it is
possible for you to register the client's faulted event, which will be raised
eventually if the client is faulted.

Thanks,
Sara

"pavel.orehov@gmail.com" wrote:

> Very sad.
>
> Well, I will add my logic to identify client death.
>
> Some timeout to response, and so on ...
>
> Thanks,
> Pavel
>
>

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Still Trying to KILL wmplayer.exe DEAD, DEAD, DEAD Vista General
RAS ASYNC Adapter? Network & Sharing
Design for async call .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46