/// <summary> /// Private to ensure local instantiation. /// </summary> private Controller() { // Initialize the logger _logger = new Logger(FilePath.ITULogPath.GetPath() + LogFileName); //Initialize the streamhandler _streamHandler = StreamHandler.GetInstance(); InitializeStreamHandler(); }
/// <summary> /// Accessor method to access the only instance of the class /// </summary> /// <returns>The singleton instance of the class</returns> public static StreamHandler GetInstance() { if (_instance == null) { _instance = new StreamHandler(); } return _instance; }