Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

WCF async model and dead client

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 11-26-2006   #1 (permalink)
pavel.orehov@gmail.com
Guest


 

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
Guest


 

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
Guest


 

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
Guest


 

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
Guest


 

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
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Design for async call Fred .NET General 0 06-10-2008 03:56 AM
is it possible to create async processes? Frank PowerShell 5 04-16-2007 07:47 AM


Vistax64.com 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 2005-2008

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 47 48 49 50 51