Пример #1
0
        private void _replicationEngine_OnCheckCancel(object sender, ReplicationCancelEventArgs e)
        {
#if DEBUG
            Shared.EventLog.Debug("RepThread " + System.Reflection.MethodBase.GetCurrentMethod().Name);
#endif
            e.CancelReplication = HasCancelled();

            if (e.CancelReplication)
            {
                AddToLogFile(String.Format("{3} Replication Cancelled: Unresposive: {0}; Marked For Removal: {1}; Hang Timeout Minutes: {2}",
                                           UnResponsive.ToString(), MarkedForRemoval.ToString(), Shared.Classes.ThreadManager.ThreadHangTimeout, ConnectionName));
            }
        }
Пример #2
0
 /// <summary>
 /// Called when the ping timer elapses
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void _objPingTimer_Elapsed(object sender, EventArgs e)
 {
     UnResponsive?.Invoke(this, new EventArgs());
 }