private void Initialize()
        {
            _instance = this;

            if (null == _csseWorker)
            {
                _csseWorker = new Worker(typeof(TimeplifySvc));
            }
        }
        /// <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;
        }
 private void UnInitialize()
 {
     if (null != _csseWorker)
     {
         _csseWorker.Dispose();
         _csseWorker = null;
     }
 }