iniatise object once

Oct 7 2005 5:51 AM
Hoping someone can explain to a beginer how I can create an object once so that it does not need to be created again but other classes can access the functionality of the object. I want to create a class which when instaniated for the first time it creates an ISessionFactory -- which is an expensive operation. The class would have one method which would return the ISessionFactory. GB