DotNed podcast: Ronald Harmsen over Async/Await en Tasks

In deze podcast spreekt Maurice de Beijer met Ronald Harmsen. Ze hebben het over de nieuwe async en await keywords in C# 5. Daarnaast hebben ze het uitgebreid over verschillende vormen van asynchroon programmeren zoals de ThreadPool, Task en IO completion ports. Links: Blog : http://www.ronaldharmsen.net/ Task Parallel Library and Servers: http://bradwilson.typepad.com/blog/2012/04/tpl-and-servers-pt1.html Scaling Up with Task Parallel Library: http://aviadezra.blogspot.nl/2009/04/task-parallel-library-parallel.html Heisenbug: http://en.wikipedia.org/wiki/Heisenbug http://channel9.msdn.com/Tags/task+parallel+library http://channel9.msdn.com/search?term=ronald+harmsen Met dank aan onze sponsor RedGate.

Using SignalR for real time communication on the web

In a previous blog post I mentioned how exited I was about WebSockets and the future with real time duplex communication over the Internet. Unfortunately the current support for WebSockets, both on the client and on the server, is still somewhat limited making this a thing of the future. Does that mean we can do this yet? Not quite.   SignalR to the resque Even if a pure Web Socket solution isn’t possible yet there are perfectly good alternatives. And the one I really like is SignalR as it allows for the same kind of application today. Check out a … Continue reading Using SignalR for real time communication on the web

Query composition with the ASP.NET Web API

Having the ASP.NET Web API as a REST service returning data is kind of nice but to be efficient on the wire we don’t want to return more data that required only to discard it in the client.   As we have seen in a previous post just returning a collection data was real easy.   As it turns out changing the service so the client can filter data is almost just as easy. In the previous example we returned an IEnumerable<Product>. All we need to do is change this to return an IQueryable<Product> instead of an IEnumerable<Product> and most … Continue reading Query composition with the ASP.NET Web API

Installing ASP.NET MVC 4 Beta breaks ASP.NET MVC 3 RTM applications

We where just bitten by this one and the problem was not immediately obvious. You will see some error like The name ‘model’ does not exist in the current context or ‘System.Web.WebPages.Html.HtmlHelper’ does not contain a definition for ‘ActionLink’ and no extension method ‘ActionLink’ accepting a first argument of type ‘System.Web.WebPages.Html.HtmlHelper’ could be found (are you missing a using directive or an assembly reference?)     Additionally when you check the IntelliSense of @Html you will not see some of the extension methods like Action() or ActionLink()   Fixing it is not hard one you know the problem. Include the … Continue reading Installing ASP.NET MVC 4 Beta breaks ASP.NET MVC 3 RTM applications

Updating data with the ASP.NET Web API

  In the previous blog post I demonstrated how to get started with the ASP.NET Web API and retrieve some products data from the Northwind database. Something that was really easy to do But quite often we want to update data just as much as we want to retrieve it.   A quick recap of REST and HTTP methods used. The convention for REST service as defined by Roy Fielding is to use different HTTP methods to signify our intent with the HTTP request. The HTTP GET method, by far the most commonly used one on the internet, is used … Continue reading Updating data with the ASP.NET Web API

Getting started with the ASP.NET Web API

Some time ago I did a number of blog posts about the beta versions of the WCF Web API. As it turns out the WCF Web API team has moved into the ASP.NET team, a good thing as far as I am concerned, and as a result it is now called ASP.NET Web API. Now this is much more that just a name change. For starters there is very little of the WCF bits still involved, in fact when you use ASP.NET as a host none at all. As a result it takes on quite a few characteristics of ASP.NET … Continue reading Getting started with the ASP.NET Web API

Windows Workflow Foundation 3 Types Marked Obsolete in .NET 4.5

People have been wondering for a while what the future of WF3 was since the release of WF4. So far both workflow stacks have coexisted in .NET 4 and there has been no official statement about the future of the older WF3 stack.   That has just changed! The workflow team at Microsoft has just announced that they are marking the WF3 stack as deprecated with the next release of the .NET framework, .NET 4.5. Of course the types are still there but you will get compile time  warnings for using them and you can expect the classes to be … Continue reading Windows Workflow Foundation 3 Types Marked Obsolete in .NET 4.5