/// <summary>
        /// Gets the service monitor time.
        /// </summary>
        /// <param name="service">The service.</param>
        /// <param name="serviceStatusDatabasePath">The service status database path.</param>
        /// <returns></returns>
        public static DateTime GetServiceMonitorTime(Service service, string serviceStatusDatabasePath, FileLoggerConfiguration loggerConfiguration)
        {
            DateTime returnTime = new DateTime();

            var svcMon = new SC_StatusDbDt.ServiceMonitor();

            var monitorTime = svcMon.Single(new { ServiceId = service.ServiceId });

            returnTime = monitorTime.MonitorTime;

            return(returnTime);
        }
        /// <summary>
        /// Gets the extension execute status time.
        /// </summary>
        /// <param name="service">The service.</param>
        /// <param name="success">if set to <c>true</c> [success].</param>
        /// <param name="serviceStatusDatabasePath">The service status database path.</param>
        /// <returns></returns>
        public static DateTime GetExtensionExecuteStatusTime(Service service, bool success, string serviceStatusDatabasePath, FileLoggerConfiguration loggerConfiguration)
        {
            DateTime returnTime = DateTime.MinValue;

            var svcMon = new SC_StatusDbDt.ServiceMonitor();

            var monitorTime = svcMon.Single(new { ServiceId = service.ServiceId });

            if (success)
            {
                returnTime = monitorTime.ServiceSuccessRunTime;
            }
            else
            {
                returnTime = monitorTime.ServiceFailRunTime;
            }

            return(returnTime);
        }