My Fiddler Session in Sela’s Dev Days

June 30, 2011

Today was my last session in the Dev-Days conference, and this time it was about Fiddler. In this 1-day session we saw how Fiddler can be used to sniff communication, use it as a reverse proxy, manipulate the communication, and how to extend Fiddler with your own custom inspectors and request/response tampering code. We also saw several extensions for fiddler such as the SyntaxView, the request code generator, and the FiddlerScript utility that enables you to edit the Fiddler’s script using intellisense. You can download the presentation and the code samples (including two sample inspectors I...
no comments

ServicePointManager.DefaultConnectionLimit == 2? The Depends continues…

June 28, 2011

A few days ago I posted about the missing documentation about ServicePointManager.DefaultConnectLimit and that its default value is not always 2 (the value actually depends on the target server, if it’s a remote server or your localhost). Yesterday, after my advanced WCF course, I got an email from one of the attendees that pointed out that indeed the default value is 2 for remote servers, but only in desktop applications (console, win forms…). In WCF services that are hosted in a web application, the default value for outgoing connections is actually 12 times the number of cores. ...

My WCF Crash Course and Advanced Workshop in Sela’s Dev-Days

June 27, 2011

Yesterday we started Dev-Days at Sela – 5 days, 15 experts, 25 session, and a whole lot of people (around 600 people registered for this week). Yesterday Erez Harari and I had our WCF Crash Course – going from 0 knowledge to a 100 in 9 hours. We talked about services, contracts, hosting, monitoring, RESt, security, reliability, and extensibility. There were about 40 people that attended the session, and I enjoyed it a lot. To those of you who attended the lectures, and to those who just want to take a peek at what we talked about, I’ve uploaded the...
tags: , , ,
5 comments

WMI and WCF

June 24, 2011

One of the ways to monitor WCF is by using the Windows Management Instrumentation (WMI) provider. In short, WMI provides you with a way to view information about running services in your machine and in other machines in the network. You can view their process information, service information, endpoint configuration, and even change some of the service’s configuration in runtime, without needing to restart the service. Little has been written about this feature. The basics of it is document of course on MSDN, which tells you what to set in your configuration to make the WMI provider work....
23 comments

ServicePointManager.DefaultConnectionLimit == 2? Depends…

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...

My lectures at Visual Studio Live! 2011

June 7, 2011

In October I’m going to attend the Visual Studio Live! 2011 conference at Microsoft HQ in Redmond, this time not as a listener, but as a presenter. I’m going to have two sessions in the conference, the first one will be about the new features of WCF 4, and the other one will be about the new “face” of ASP.NET, which is of course ASP.NET MVC. I have a lot to tell you about these technologies, so were going to have lots of fun (and hopefully learn something new in the process). But before...