ActionFilters are a great way to add extra functionality to your Web API service. This article shows examples of how the ActionFilters work together, how the filters can be overrided and how the filters can be used together with an IoC. The diagram underneath shows how the filters are called in the Web API lifecycle. […]

This post demonstrates how to set up a very basic message queue using SignalR with SQLite. This could be used to collect data from a measurement system or a client which is not always online but no data messages should be lost or the sequence of the messages. Code: https://github.com/damienbod/SignalRMessagingBuffering Only the client contains a […]

This posts explains how to set up an MVC5 application using Unity 3 and Semantic Logging (SLAB). Attribute Routing is used for the controllers. Code: https://github.com/damienbod/MVC5UnitySlab Adding Unity 3 to the MVC5 project Add the NuGet packages to the MVC5 project. Now add the start up logic in the UnityConfig file in the App_Start folder. […]

This post is a very simple example of how to create strong named assemblies and use in a solution. Each project uses the same strong named key. One key is uesd for the whole solution. Step 1: Create the snk Key Open the Developer Command prompt as an administrator and enter sn -k C:/yourKeyPairName.snk Step […]

This post explains the steps in setting up a professional versioning in a .NET solution. Project versioning In solutions, many projects can exist. It is important to structure the project so that when creating a release, all assemblies are set to the release version. This should be set as part of the release build, not […]

In this post (in the diagram), an overview of what components can be or should be used when creating modern .NET applications. It displays the components which are becoming more important and the components which are heading towards distinction. Only 3rd party components which can be used productively together with .NET components are shown. For […]

This is just a collection of links, tools for monitoring, testing, tracing, debugging ASP.NET applications. When I have time I’ll evaluate each of the different tools. Health Monitoring and ASP.NET MVC http://msdn.microsoft.com/en-us/library/bb398933.aspx http://msdn.microsoft.com/en-us/library/x28wfk74.aspx http://odetocode.com/blogs/scott/archive/2009/10/12/health-monitoring-and-asp-net-mvc.aspx http://maxivak.com/asp-net-mvc-error-logging/#health Log exceptions with Health Monitoring in ASP.NET MVC3 Health Monitoring with ASP.NET MVC http://www.asp.net/web-forms/tutorials/deployment/deploying-web-site-projects/logging-error-details-with-asp-net-health-monitoring-cs How I Over-Engineered the ASP.NET Health Monitoring Feature […]

This example shows how to create a dynamic list in MVC application. An input event sends an ajax http Get to the controller, the data is created and sent back to the view. The input event uses the jquery.unobtrusive-ajax.js jQuery library to send the http Get to the server. Code: https://github.com/damienbod/MvcDynamicDropdownList History 2018-06-14 Updated to […]

In this post, a WPF application using MVVM is created and used to send and recieve SignalR messages. The post continues on from: SignalR Messaging, a more complete server with a Console Application Code: https://github.com/damienbod/SignalRMessagingErrorHandling The application uses 4 different projects: Damienbod.SignalR.IHubSync.Client: This project helps us use the SignalR Hub hosted in the server console […]

In this post, a Data access layer is implemented using the repository pattern together with entity Framework 6 and SQLite as a database. The post continues on from Getting started, using SQLite with .NET UPDATE 02.03.2014: Using the new SQLite version 1.0.91.3 now with the SQLite provider. The xml app configuration needs to be changed […]