Singleton Instance in SimpleInjector

added by jalpesh
9/8/2014 8:05:19 PM

0 Kicks, 158 Views

Before some time I have written a blog post Dependency Injector with Simple Injector. This is a second blog post in same series. In this blog post we are going to learn How we can create a singleton Instance in Simple Injector. What is is Singleton: This is one of the Gang of Four creational pattern. Idea of behind the singleton pattern is to have only one instance of class of at anytime. This pattern ensures that a class will has only one instance of it and provides a global point of access to that instance. I have already writte