DCSIMG
WCF OneWay - Abort or Not - Zuker On Foundations

Zuker On Foundations

The realm of .NET (WPF, WCF and all around)
WCF OneWay - Abort or Not

This is regarding my findings in the following post:

WCF and OneWay – Behavioral Inconsistency

The best practice remains the same - calling O/W operation should end the use of your proxy object.
However, the next suggestion that I made - calling abort - is a bit tricky.

We found that once in while a single call would yield an exception on the server side and the execution on the service never happened.
The client never received an exception (because it's O/W) but we were able to see in the server logs thanks to our error handler logger.
That happened about once every 600 calls.

So, taking everything into mind - You shouldn't abort the proxy after calling O/W operation (that is when no exception occurs) but you should really call BeginClose with an acceptable logical timeout.
This would suffice with the communication requirements plus give you the fire-and-forget semantics. (once the message is dispatched to the service)

Published Saturday, June 20, 2009 4:28 PM by Amir Zuker

תגים:,

Comments

# re: WCF OneWay - Abort or Not@ Thursday, June 25, 2009 11:14 PM

Can you please elaborate on what's the difference (practically) between calling Abort and BeginClose?

if it's a OneWay operation, will the client receive the exception if he calls BeginClose?

Yitzhak Steinmetz

# Wcf Contrib v2 - New Release - August 2009@ Friday, August 07, 2009 1:15 AM

It's been ages since my last post, I feel so bad about it. I've been swamped at work, I hope

Zuker On Foundations

# Wcf Contrib v2 - New Release - August 2009@ Friday, August 07, 2009 1:19 AM

It's been ages since my last post, I feel so bad about it. I've been swamped at work, I hope

Zuker On Foundations

# WCF and OneWay ??? Behavioral Inconsistency - Zuker On Foundations@ Wednesday, June 30, 2010 6:50 PM

Pingback from  WCF and OneWay ??? Behavioral Inconsistency - Zuker On Foundations

WCF and OneWay ??? Behavioral Inconsistency - Zuker On Foundations

# re: WCF OneWay - Abort or Not@ Sunday, February 06, 2011 1:51 PM

Thank you for giving out these incredibly helpful information. Congratulations in as an exceptional blogger.

san juan Capistrano counselor

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: