I’m working on an application which uses a bootscrapper object to perform some operations when the application first starts. e.g. registers IoC objects, puts certain variables into the asp.net Application session object, does some security checks etc.
I had a look around the internet and couldn’t find a reference to a bootscrapper pattern, or any article about the subject.
Is this a known pattern under a different name?
Edit: The object is run whenever an application is started. e.g. I’ve seen it in a wcf service, and an ASP.net application.
Bootstrapper or bootscrapper? Never heard of the latter.
Bootstrap as a concept is widely used.
In your case there is some initialisation work you want to do. That exact work must surely be defined by you, I would not expect too see any reusable defintion of that.
One key idea here is that you may need to be sure that all of your initialisation is complete before public requests are serviced. I would expect the specific of how that’s achieved to be specific to the framework you are working in. Often there are initalisation callbacks where you can out your code and the framework guarantees not to enable your object till those callbacks return.
So, maybe you could search for Initialisation and/or callbacks.