Wrox Programmer Forums
|
BOOK: Professional WCF 4: Windows Communication Foundation with .NET 4
This is the forum to discuss the Wrox book Professional WCF 4: Windows Communication Foundation with .NET 4 by Pablo Cibraro, Kurt Claeys, Fabio Cozzolino, Johann Grabner; ISBN: 978-0-470-56314-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional WCF 4: Windows Communication Foundation with .NET 4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 6th, 2012, 09:15 AM
Registered User
 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to close WCF Client at callback

Hi,

For a "normal" wcf client as:

WCFServiceClient c = new WCFServiceClient();

try
{
c.HelloWorld();
}
catch
{
// acknowledge the Faulted state and allow transition to Closed
c.Abort();

// handle or throw
throw;
}
finally
{
c.Close();
}


But for a client of callback wcf services, what is the best way to to close client channel?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Spring based Dao with callback Vs without callback kasipandian Spring 0 November 9th, 2009 08:26 AM
Wcf and Asp.Net client, Windows authentication saigiridhar.k BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842 0 August 11th, 2009 01:27 AM
WCF Remote Client Callbacks using wsDualHttpBindin DocMod BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842 0 August 21st, 2008 09:26 PM
WCF endpoint error when wrapping WCF service with jdawg1979 Visual Studio 2008 0 July 8th, 2008 11:56 AM
Browser close when screen saver close Rehanrana Pro VB 6 1 April 7th, 2008 03:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.