Class SafariDriverServer
Provides the WebSockets server for communicating with the Safari extension.
public class SafariDriverServer : IDisposable
- Inheritance
-
SafariDriverServer
- Implements
- Inherited Members
Constructors
SafariDriverServer()
Initializes a new instance of the SafariDriverServer class.
public SafariDriverServer()
SafariDriverServer(int)
Initializes a new instance of the SafariDriverServer class using a specific port for communication.
public SafariDriverServer(int port)
Parameters
port
intThe port to use to communicate.
Properties
ServerUri
Gets the URI of the server.
public Uri ServerUri { get; }
Property Value
- Uri
Methods
Dispose()
Releases all resources used by the SafariDriverServer.
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the SocketWrapper and optionally releases the managed resources.
protected virtual void Dispose(bool disposing)
Parameters
Start()
Starts the server.
public void Start()
Stop()
Stops the server.
public void Stop()
WaitForConnection(TimeSpan)
Waits for a connection to be established with the server by the Safari browser extension.
public SafariDriverConnection WaitForConnection(TimeSpan timeout)
Parameters
Returns
- SafariDriverConnection
A SafariDriverConnection representing the connection to the browser.