Author Archives: admin

Demistifying async/await

Microsoft introduced new keywords in C# 5.0 for asynchronous programming. Before C# 5.0 async. programming was only possible with .NET Framework classes. Now it’s implemented in the C# language itself. Here is a simple demo which shows how the keywords can be used. public async Task<string> DownloadFromWeb() { var client = new HttpClient(); return await… Read More »

Swap Your WebHost With OWIN / Katana

The OWIN (Open Web Interface for .NET) specification defines how to decouple web applications from the web server. Detailed information you can get here: http://owin.org Because it’s specification, you won’t find any applications or libraries. One of the concret impelmentations of OWIN is called Katana. Katana is developed by Microsoft and the Community. The code… Read More »

WPF MVVM – Model Change Tracking

I found the change tracking in WPF always a little bit painful, when working with simple POCOs without any change tracking context (for example ADO.NET EF). Therefore, I wrote a small library which simplifies the tracking. The Lib contains three interesting classes: EditableObject: Imlements the IEditableObject interfaces and handles the revert functionality and change tracking.… Read More »

Next Generation Web With ASP.NET MVC, Knockout.js, SignalR, NServiceBus

Most of the websites that we know today, show a similar architecture: – The Client (Browser) request a specific page. – The Server handles the request and returns the result. – The result is displayed on the Browser. – From here the content of the site remains “static”. That means: If the user wants to… Read More »

Typing TypeScript

Since companies are moving every single application to web, TypeScript gets more and more interesting. JavaScript is nice, but it wasn’t designed for big web applications. TypeScript is a Javascript language extension with very useful features. It isn’t a JavaScript killer. The code is converted to JavaScript and the browser executes pure JavaScript code. We… Read More »

ASP.NET MVC Conversational Session

I’m proudly presenting you my first self-made NuGet package. 🙂 NuGet: ASP.NET MVC Conversational Session (Nuget) GitHub: ASP.NET MVC Conversational Session (GitHub) I’ve created a small extension for ASP.NET MVC which simplifies the session handling in tabbed browsing scenarios. The extension ensures, that your session data won’t be overwritten. For example: Page 1: Contains a… Read More »

Entity Framework Code First And SQL Server DACPAC

Entity Framework Code First Migrations allows you to handle changes in your model (C#) by generating “migration scripts” for keeping the DB in sync with the code. It works very well. But I never used it in a project with more than 1 developer. I think we could run in different problems. And managing all… Read More »

It’s Worth To Be Lazy<>

In the past few projects I saw a lot of wrong implemented Singleton patterns. Since Microsoft released the class “Lazy” in .NET 4.0, Singleton is much easier to implement. So… be lazy and use the class Lazy 😉 Here is an example: This code here initializes the “_instance” variable when accessing the the “Instance” property… Read More »