private void OnStepStateChanged(object sender, StepExecutionChangedEventArgs args)
{
if (this.StepExecutionChangedPrivate != null)
{
VsThreadingHelper.RunInline(this, VsTaskRunContext.UIThreadNormalPriority,
() =>
{
var delegates = this.StepExecutionChangedPrivate;
if (delegates != null)
{
delegates(sender, args);
// Verify that the observer handled it since now easy way of testing
// serialized raising and handling of the event across the classes
args.CheckHandled();
}
});
}
}
}