Monthly Archive: October 2014

LogController C# 2

Log collector – logging on steroids

Logging is a necessary part of any well-designed system. In this article, I would like to present a component that will make it easier to work with any application logs. In one of my projects, it was the perfect approach...

Basic Backend Command Pattern Piotr Łuksza

Simple Backend solution based on Command Pattern

In this post I would like to present a simple backend system based on the Command Design Pattern where each command has own independent scope. While designing a quite complicated system with many different functions – I tried to come...

0

FIRST CHANCE Exceptions

Few months ago I was preparing to 70-486 MVC exam and I found a great way of exception handling in Exam ref Book. I decided to make a quick note based on this material. Introduction First chance exception is debugging concept...

0

TSQL Merge statement

SQL Server 2008 offers us an interesting feature called MERGE function that allows you to perform multiple actions in one query. I noticed, however, that many of my fellow programmers did not use it. That is why I decided to...

0

Global Configuration inProc

In many applications, we are struggling with performance issues. One of the most basic practices is to try to limit database connections, especially where data rarely changes. We can load them once into memory when the application starts and refresh...

0

FileSystemWatcher with ASP .NET MVC 4

My MVC app had to process ZIP pack, which was provided to a special folder by external source. The file was containing some data which should be processed by my system. At the time the file appeared, the system should immediately start...

0

Custom action filter attributes in request logging

MVC .NET provides abstract class ActionFilterAttribute with virtual methods: OnActionExecuting Called before the action is called. It gives you the opportunity to look at information within the HttpContext and make decisions about whether the process should continue to be processed....

0

JQuery UI dialog open – good practice

JQuery dialog is popular plugin, but sometimes it doesn’t work as we want to. I had a situation where my modal window pop up always third time and I had no idea why… Event for my button was binded well...