A while back, I blogged about a handy task scheduler and repeater. I use this code often and when I started using it with a heavy memory/data footprint, some serious memory leaks came to light.
Ramblings of a software developer..
posted on February 3, 2017 by long2know in ASP.NET, Entity Framework, Ninject
A while back, I blogged about a handy task scheduler and repeater. I use this code often and when I started using it with a heavy memory/data footprint, some serious memory leaks came to light.
posted on October 20, 2016 by long2know in Ninject
Ninject is one of the better dependency injection frameworks, IMHO. However, within the context of .NET Threads and thread pooling, scoping of objects doesn’t work quite as expected.
posted on May 5, 2016 by long2know in ASP.NET, Ninject
Today I ran into an interesting issue. I have a process that uses many database Repositories that are intended to share a DbContext. This is necessary due to a reliance, and desire to use, Entity Framework’s state tracking.
However, once I moved away from working entirely from an HttpContext scope, my Ninject bindings failed me.
posted on February 11, 2016 by long2know in ASP.NET, Ninject
Dependency injection is very useful for decoupling classes from specific implementations. Typically, I use constructor injection with Ninject as my IoC (inversion of control) container. However, I’ve always had to specify interface -> type bindings one by one. It’s very clunky.