Dispose() public method

Releases all resources used by the SafariDriverCommandExecutor.
public Dispose ( ) : void
return void
Beispiel #1
0
        /// <summary>
        /// Releases the unmanaged resources used by the <see cref="SafariDriver"/> and
        /// optionally releases the managed resources.
        /// </summary>
        /// <param name="disposing"><see langword="true"/> to release managed and resources;
        /// <see langword="false"/> to only release unmanaged resources.</param>
        protected override void Dispose(bool disposing)
        {
            SafariDriverCommandExecutor executor = this.CommandExecutor as SafariDriverCommandExecutor;

            if (executor != null)
            {
                executor.Dispose();
            }

            base.Dispose(disposing);
        }
Beispiel #2
0
        /// <summary>
        /// Stops the command executor, ending further communication with the browser.
        /// </summary>
        protected override void StopClient()
        {
            SafariDriverCommandExecutor executor = (SafariDriverCommandExecutor)this.CommandExecutor;

            executor.Dispose();
        }