Ejemplo n.º 1
0
        private void OnCancellationSupportChanged(object sender, CancellationSupportChangedEventArgs e)
        {
            AssertEventHandlerArgsNotNull(sender, e);

            this.cancellableStateChanges++;
            // Satisfy the sequential controller verification code
            e.Handled();
        }
Ejemplo n.º 2
0
 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();
 }