Exemple #1
0
 /// <summary>
 /// Accessor method to access the only instance of the class
 /// </summary>
 /// <returns>The singleton instance of the class</returns>
 public static FileSystemDao GetInstance()
 {
     if (_instance == null)
     {
         _instance = new FileSystemDao();
     }
     return _instance;
 }
Exemple #2
0
        /// <summary>
        /// Private to ensure local instantiation.
        /// </summary>
        private StreamHandler()
        {
            // Get singleton instancees
            _fileSystemHandler = FileSystemDao.GetInstance();
            _dao = DatabaseDao.GetInstance();
            _trackPrioritizer = TrackPrioritizer.GetInstance();

            //Initialize collections
            runningChannelIds = new Dictionary<int, EzProcess>();
            newTrackPlays = new List<TrackPlay>();
            ezstreamProcessIds = new List<int>();
        }