Esempio n. 1
0
 static void Main(string[] args)
 {
     try
     {
         var syncFunctions = new SyncFunctions();
         syncFunctions.SyncData();
     }
     catch (Exception ex)
     {
     }
 }
Esempio n. 2
0
        public void SyncData(object sender, ElapsedEventArgs e)
        {
            Timer.Stop();
            try
            {
                EventLog.WriteEntry("Sync Started", EventLogEntryType.Information);

                var syncFunctions = new SyncFunctions();
                syncFunctions.SyncData();
            }
            catch (Exception ex)
            {
                EventLog.WriteEntry("Error occured Started : " + ex.Message, EventLogEntryType.Error);
            }
            Timer.Start();
        }