0
Answer

iniatise object once

Ask a question
Gareth Baker

Gareth Baker

19y
1.6k
1
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