BondInEtwLinqpadDriver.BondDynamicDriver.OnQueryFinishing C# (CSharp) Method

OnQueryFinishing() public method

This method is called after the query's main thread has finished running the user's code, but before the query has stopped. If you've spun up threads that are still writing results, you can use this method to wait out those threads.
public OnQueryFinishing ( IConnectionInfo cxInfo, object context, LINQPad.Extensibility.DataContext.QueryExecutionManager executionManager ) : void
cxInfo IConnectionInfo Connection information, as entered by the user.
context object Context
executionManager LINQPad.Extensibility.DataContext.QueryExecutionManager execution manager
return void
        public override void OnQueryFinishing(
            IConnectionInfo cxInfo, object context, QueryExecutionManager executionManager)
        {
            var playback = (Playback)context.GetType().GetProperty("playback").GetValue(context, new object[] { });

            if (playback != null)
            {
                playback.Run();
            }
        }