/// <summary>
        /// UnInitialize the resources.
        /// </summary>
        /// <returns>true if success.</returns>            
        protected override bool UnInitialize()
        {
            try
            {
                _processor.Dispose();
                _config.Dispose();

                if (null != _appLogger)
                {
                    _appLogger.LogMessage(LogPriorityLevel.Informational, "Successfully stopped CSSE Service.");
                }

                _appLogger.StopLog();

                _config = null;
                _appLogger = null;
                _processor = null;
            }
            catch (Exception ex)
            {
                if (null != _appLogger)
                {
                    _appLogger.LogMessage(LogPriorityLevel.Informational, "Failed to stop CSSE Service. [Error] {0}.", ex.Message);
                }
            }

            return base.UnInitialize();
        }
        /// <summary>
        /// Initialize the resources.
        /// </summary>
        /// <returns>true if success.</returns>
        protected override bool Initialize()
        {
            // Locals
            bool bRet = false;

            try
            {
                _instance = this;

                //System.Diagnostics.Debug.Assert(false);

                _config = new Config();

                bRet = null != _config;

                if (bRet)
                {
                    _processor = new Processor();
                }

                if (null != _appLogger)
                {
                    _appLogger.LogMessage(LogPriorityLevel.Informational, "Successfully started Timeplify Service.");
                }
            }
            catch (Exception ex)
            {
                if (null != _appLogger)
                {
                    _appLogger.LogMessage(LogPriorityLevel.FatalError, "Failed to start Timeplify Service {0}", ex.Message);

                }
            }

            return bRet;
        }