Starting With Another Clean Slate

Most of the code is boiler plate code – create an asset, create a locator, create a job for processing the asset’s file(s) but there’s too many dependencies involved each of the methods.  Since I’m using Unity to inject the types I need into each of my media processors, I’ll just create the necessary contexts in a(the) bootstrapper and register the types in the Unity container.

I can tell Unity if I want a new one, or to use the same one, which in some cases is the right thing to do.  The ones that I can reuse will just get managed with a using clause or something like that, whatever works best to relieve the GC pressure on the app and still let me reuse types from the container.

Advertisements