Esempio n. 1
0
 /// <summary>
 /// Kill the job
 /// </summary>
 /// <returns></returns>
 internal bool Kill()
 {
     if (IsRunning)
     {
         _Object.Dispose();
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
        /// <summary>
        /// Kill the job
        /// </summary>
        /// <returns></returns>
        public bool Kill()
        {
            if (IsRunning)
            {
                if (_Object != null && !_Object.IsDisposed)
                {
                    _Object.Dispose();
                }
                return(true);
            }

            if (_Object != null && !_Object.IsDisposed)
            {
                _Object.Dispose();
            }

            return(true);
        }