/// <summary> /// Cancels the currently executing pipeline by instructing it to abort /// </summary> public override void Cancel() { if (PipeLine != null) { try { Log.LogDebug("WARNING: Aborting pipeline due to cancellation"); PipeLine.Abort(); } catch (Exception e) { Log.LogError(e, "Exception occurred during pipeline cancellation"); // Just in case the pipeline commits suicide before other related tasks are // cancelled (and so also inform the pipeline that it is cancelled), swallow // any exception generated for the abort request. } finally { Log.LogInformation("Nulling pipeline reference"); PipeLine = null; } } }