private void ThreadSafeDisposeCancellationTokenSource()
{
if (this.cancellationTokenSource != null)
{
lock (this.locker)
{
if (this.cancellationTokenSource != null)
{
this.cancellationTokenSource.Dispose();
this.cancellationTokenSource = null;
}
}
}
}