Csharp

Caching data in ASP.NET MVC revisited

A Cache in ASP.NET MVC built on top of the HttpRuntime.Cache, allowing caching of synchronous and asynchronous methods, with or without locking.

WebClient wrapper in C#

A wrapper of the WebClient class that allows to set the timeout period.

IP Address helper in ASP.NET MVC

Helper class and plumbing for accessing the IP address of the client in and ASP.NET MVC application.

Dependency Injection in Action Filters in ASP.NET MVC

How to do dependency injection in action filters in ASP.NET MVC and avoid issues with reused filters.

Enum Memoizer in C#

A class for more efficient parsing of enums and conversion to strings.

Isolating database data in Entity Framework Integration Tests

A quick way to make your integration tests clean up after themselves by wrapping them in an uncommitted transaction.

Caching data in ASP.NET MVC

A Cache implementation for ASP.NET MVC building on top of the HttpRuntime.Cache.

Avoiding circular project dependecies with extension methods in C#

We show how extension methods can help avoid awkward situations where circular dependencies between projects would be needed.

Time-stamping entities in GenericRepository in Entity Framwork

Setting the CreatedOn and UpdatedOn properties in one place, the Generic Repository.

Helper class for parsing values from the config file in C# revisited

A testable helper class with methods for parsing values from the config file, dealing with cases like absent key or values that cannot be parsed.

Dependency injection across multiple layers with NInject

I dicsucss how to structure a .Net solution and achieve dependency injection across many layers without additional couplings between projects.

Helper class for parsing values from the config file in C#

A set of static methods for parsing values from the config file, dealing with cases like absent key or values that cannot be parsed.

Page 1 of 1