/// <summary> /// Kill the job /// </summary> /// <returns></returns> internal bool Kill() { if (IsRunning) { _Object.Dispose(); return(true); } return(false); }
/// <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); }