How to decide which WCF binding to choose??!!

יום שלישי, מרץ 1, 2011

Hi, I decided to share a nice diagram that can help you decide which WCF binding you should choose for your application or SOA architecture. (If you can see the entire image you can download it using right click and "Save Picture As...")  
no comments

WCF Best Practices: How to Dispose WCF clients

יום רביעי, יולי 30, 2008

Use of the using statement (Using in Visual Basic) is not recommended for Dispose WCF clients. This is because the end of the using statement can cause exceptions that can mask other exceptions you may need to know about.using (CalculatorClient client = new CalculatorClient()){...} // <-- this line might throwConsole.WriteLine("Hope this code wasn't important, because it might not happen.");The correct way to do it is:try{...client.Close();}catch (CommunicationException e){...client.Abort();}catch (TimeoutException e){...client.Abort();}catch (Exception e){...client.Abort();throw;}