private void HandleDisconnecting(object sender, DisconnectingEventArgs e) { if (!disconnectingCB.Checked) { return; } AddResultStringToOutput("\nDisconnect Started. Browser state: " + e.SessionState + ".\n"); }
// Handler for the Disconnecting event on the Browser object. private void HandleDisconnecting(object sender, DisconnectingEventArgs e) { Console.WriteLine("Disconnecting."); }
/// <summary> /// Invoked when the browser is disconnecting. /// </summary> /// <param name="tcs"></param> /// <param name="args"></param> void OnDisconnecting(TaskCompletionSource<VoiceXmlResult> tcs, DisconnectingEventArgs args) { if (tcs.Task.IsCompleted) return; Dispatch(() => { }); }