internal void Handled()
{
Interlocked.Increment(ref this.handled);
}
private void ControllerStarted(object sender, ProgressEventArgs e) { // Show can be modal and block, so begin invoke it VsThreadingHelper.BeginTask(this.serviceProvider, VsTaskRunContext.UIThreadNormalPriority, this.host.Show); // Flag that handled to assist with the verification, otherwise the controller will assert e.Handled(); }