c# Programming Glossary: codeblock
What is the best workaround for the WCF client `using` block issue? http://stackoverflow.com/questions/573872/what-is-the-best-workaround-for-the-wcf-client-using-block-issue T public static void Use UseServiceDelegate T codeBlock IClientChannel proxy IClientChannel _channelFactory.CreateChannel.. _channelFactory.CreateChannel bool success false try codeBlock T proxy proxy.Close success true finally if success proxy.Abort..
How to handle WCF exceptions (consolidated list with code) http://stackoverflow.com/questions/6130331/how-to-handle-wcf-exceptions-consolidated-list-with-code Proxy suitable when sessionmode false summary param name codeBlock param public static void Use UseServiceDelegateVoid T codeBlock.. param public static void Use UseServiceDelegateVoid T codeBlock IClientChannel proxy IClientChannel _channelFactory.CreateChannel.. _channelFactory.CreateChannel bool success false try codeBlock T proxy proxy.Close success true catch CommunicationObjectAbortedException..
|