Two months speaking spree

Friday, October 5, 2012

If you’ve been checking my blog in the last couple of weeks, you might have noticed I haven’t been posting much. In the past two months I have been traveling around the world, speaking in conferences and local user groups. So to sum up this intensive, fun times, here’s a list of all conferences I visited and links to all the material I showed. What’s new in WCF 4.5 Building scalable, low-latency web apps with Windows Azure Embracing HTTP with the ASP.NET Web API ...

ServicePointManager.DefaultConnectionLimit == 2? Depends…

Monday, June 20, 2011

“Depends” is my favorite answer when teaching .NET-related courses, because behind this simple word lies the implementation of the CLR and BCL, which sometimes lead us to answers we didn’t expect. For example, take the question in the topic: according to MSDN, the default value of System.Net.ServicePointManager.DefaultConnectionLimit is 2. So I wrote some code that tries to open a lot of connections from a console application to a WCF service, and to my amaze, I was able to send dozens of requests at a time, without hitting the two connection limit. So I used my debugging...

Problems with WCF Scaling

Thursday, May 5, 2011

Every once in a while, people ask me about problems they have when trying to use a single WCF service with multiple concurrent calls. The first think I tell them is to check their WCF throttling settings. The throttling behavior in WCF controls how many instances and session WCF can create and manage at once. These settings also depend on the binding you use. For example if you have a single proxy on the client side that sends many async calls at once, and you use basicHttpBinding, WCF will by default create many instances on the...
no comments

What’s new in WCF 4 lecture for the .NET Developers User Group

Friday, January 21, 2011

Two days ago I gave a lecture at the Israeli .Net Developers User Group (IDNDUG) in Microsoft. The lecture went great and there were a lot of good questions. The presentation and the code samples are available for public download at the following link. During the lecture someone asked me a question regarding support for JSONP (JSON with padding) in WCF RESTful calls, and I answered that as far as I know there is no such support. But… since I’m quite senile I forgot that I did see such support with WCF and the WebHttpBinding. To...
no comments

What’s new in WCF 4 open house recordings

Sunday, October 17, 2010

Last week I had an open house in Sela about the new features and improvements of WCF 4. The video recordings of the lecture have been uploaded to Sela’s webcast site. You can register to the website, and after receiving your username and password, you can watch the videos from the following link. If you only want to download the presentation and the demo’s source code, you can download it from here. Enjoy.

Enum.HasFlag – where have you been all my life?

Tuesday, August 24, 2010

If you’ve ever used enumerations in .NET with bitwise operations, using the Flags attribute, you should be familiar with the following piece of code: enum Permission{  None = 0,  Read = 1,  Edit = 2,  Delete = 4,  ChangePermission = 8,  FullControl = Read | Edit | Delete | ChangePermission} Permission permission = Permission.Read | Permission.Edit; if ((permission & Permission.Delete) == Permission.Delete)  Console.WriteLine("Has permissions"); In .NET 4, a new method was introduced in order to relieve yourself from this ugly...
one comment