private void OnCancellationSupportChanged(object sender, CancellationSupportChangedEventArgs e) { VsThreadingHelper.RunInline(this.serviceProvider, VsTaskRunContext.UIThreadNormalPriority, () => { ChangeCancellability(e.Cancellable); }); // Flag that handled to assist with the verification, otherwise the controller will assert e.Handled(); }
private void OnCancellationSupportChanged(object sender, CancellationSupportChangedEventArgs e) { AssertEventHandlerArgsNotNull(sender, e); this.cancellableStateChanges++; // Satisfy the sequential controller verification code e.Handled(); }