public void Stop() { try { this.cancelTokenSource.Cancel(); this.Task.Wait(cancelTokenSource.Token); } catch { } }