Ejemplo n.º 1
0
        /// <summary>
        /// Disposes this instance.
        /// </summary>
        public void Dispose()
        {
            #region Access Log
#if TRACE
            {
                COM.Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;");
            }
#endif
            #endregion Access Log

            this.Expire = null;
            COM.Handler.LogHandler.Force(string.Format(@"CacheExpire->Dispose - Thread abort's Id: {0}; Name: {0}; ", Thread.CurrentThread.ManagedThreadId, Thread.CurrentThread.Name));
            Console.WriteLine(string.Format(@"CacheExpire->Dispose - Thread abort's Id: {0}; Name: {0}; ", Thread.CurrentThread.ManagedThreadId, Thread.CurrentThread.Name));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:CacheExpire"/> class.
        /// </summary>
        public CacheExpire()
        {
            #region Access Log
#if TRACE
            {
                COM.Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;");
            }
#endif
            #endregion Access Log

            if (sleepDuration <= 0)
            {
                this.Expire = new COM.CacheExpire(false);
            }
            else
            {
                this.Expire = new COM.CacheExpire(true);
            }
        }
Ejemplo n.º 3
0
		/// <summary>
		/// Initializes a new instance of the <see cref="T:CacheExpire"/> class.
		/// </summary>
		public CacheExpire()
		{
			#region Access Log
#if TRACE			
			{
				COM.Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;");
			}
#endif
			#endregion Access Log

			if (sleepDuration <= 0)
			{
				this.Expire = new COM.CacheExpire(false);
			}
			else
			{
				this.Expire = new COM.CacheExpire(true);
			}
		}
Ejemplo n.º 4
0
		/// <summary>
		/// Disposes this instance.
		/// </summary>
		public void Dispose()
		{
			#region Access Log
#if TRACE			
			{
				COM.Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;");
			}
#endif
			#endregion Access Log
			
			this.Expire = null;
			COM.Handler.LogHandler.Force(string.Format(@"CacheExpire->Dispose - Thread abort's Id: {0}; Name: {0}; ", Thread.CurrentThread.ManagedThreadId, Thread.CurrentThread.Name));
			Console.WriteLine(string.Format(@"CacheExpire->Dispose - Thread abort's Id: {0}; Name: {0}; ", Thread.CurrentThread.ManagedThreadId, Thread.CurrentThread.Name));
		}