/// <summary>
        /// Sets the extension success status.
        /// </summary>
        /// <param name="serviceId">The service id.</param>
        /// <param name="success">if set to <c>true</c> [success].</param>
        /// <param name="serviceStatusDatabasePath">The service status database path.</param>
        public static void SetExtensionSuccessStatus(int serviceId, bool success, string serviceStatusDatabasePath, FileLoggerConfiguration loggerConfiguration)
        {
            var svcMon = new SC_StatusDbDt.ServiceMonitor();

            dynamic data = new { };

            if (svcMon.Count(string.Format("ServiceId = {0}", serviceId)) > 0)
            {
                if (success)
                {
                    data = new { ServiceSuccessRunTime = DateTime.Now };
                }
                else
                {
                    data = new { ServiceFailRunTime = DateTime.Now };
                }
                svcMon.Update(data, new { ServiceId = serviceId });
            }
            else
            {
                if (success)
                {
                    data = new { ServiceSuccessRunTime = DateTime.Now, ServiceId = serviceId };
                }
                else
                {
                    data = new { ServiceFailRunTime = DateTime.Now, ServiceId = serviceId };
                }
                svcMon.Insert(data);
            }
        }
        /// <summary>
        /// Updates the service monitor.
        /// </summary>
        /// <param name="service">The service.</param>
        /// <param name="serviceStatusDatabasePath">The service status database path.</param>
        public static void UpdateServiceMonitor(Service service, string serviceStatusDatabasePath, FileLoggerConfiguration loggerConfiguration)
        {
            var svcMon = new SC_StatusDbDt.ServiceMonitor();

            if (svcMon.Count(string.Format("ServiceId = {0}", service.ServiceId)) > 0)
            {
                svcMon.Update(new { MonitorTime = DateTime.Now }, new { ServiceId = service.ServiceId });
            }
            else
            {
                svcMon.Insert(new { MonitorTime = DateTime.Now, ServiceId = service.ServiceId });
            }
        }