Robin Hames

Hints, tricks and tips relating to MS SQL Server and .NET
posts - 14 , comments - 43 , trackbacks - 0

September 2012 Entries

Adding SQL Cache Dependencies to the Loosely coupled .NET Cache Provider
This post adds SQL Cache Dependency support to the loosely coupled .NET Cache Provider that I described in the previous post (http://geekswithblogs.net/... The sample code is available on github at https://github.com/RobinHam... Each time we want to apply a cache dependency to a call to fetch or cache a data item we need to supply an instance of the relevant dependency implementation. This ......

Posted On Thursday, September 13, 2012 12:24 PM | Comments (0) | Filed Under [ C# ASP.NET Design Patterns Data Caching MVC 3 Razor ]

Loosely coupled .NET Cache Provider using Dependency Injection
I have recently been reading the excellent book “Dependency Injection in .NET”, written by Mark Seemann, which I strongly recommend. Reading the ideas around Dependency Injection made me realise that the Cache Provider code I wrote about earlier (see http://geekswithblogs.net/R... could be refactored to use Dependency Injection, which should produce cleaner code. The goals are to: Separate the cache provider implementation ......

Posted On Tuesday, September 11, 2012 2:11 PM | Comments (1) | Filed Under [ C# ASP.NET Design Patterns Data Caching MVC 3 Razor ]

Powered by: