Example #1
0
 /// <summary>
 /// Accessor method for accessing the single instance of FileSystemHandler.
 /// </summary>
 /// <returns>The only instance of FileSystemHandler</returns>
 public static FileSystemHandler GetInstance()
 {
     if (instance == null)
     {
         instance = new FileSystemHandler();
     }
     return(instance);
 }
 /// <summary>
 /// Accessor method for accessing the single instance of FileSystemHandler.
 /// </summary>
 /// <returns>The only instance of FileSystemHandler</returns>
 public static FileSystemHandler GetInstance()
 {
     if (instance == null)
     {
         instance = new FileSystemHandler();
     }
     return instance;
 }
 /// <summary>
 /// Private constructor to ensure that Facade is not created outside this class.
 /// </summary>
 private PersistentStorage()
 {
     dao = DAO.GetInstance();
     fsh = FileSystemHandler.GetInstance();
 }
 /// <summary>
 /// Private constructor to ensure that Facade is not created outside this class.
 /// </summary>
 private PersistentStorage()
 {
     dao = DAO.GetInstance();
     fsh = FileSystemHandler.GetInstance();
 }