Example #1
0
        /// <summary>
        /// Check the transactions table, set expired transaction state to failed
        /// </summary>
        private void CheckTransaction(object sender, ElapsedEventArgs e)
        {
            long ticksToEpoch  = new DateTime(1970, 1, 1).Ticks;
            int  unixEpochTime = (int)((DateTime.Now.Ticks - ticksToEpoch) / 10000000);
            int  deadTime      = unixEpochTime - DEAD_TIME;

            m_moneyDBService.SetTransExpired(deadTime);
        }