C# Class WindowsPhoneDriver.InnerDriver.AutomationServer

显示文件 Open project: 2gis/winphonedriver

Public Properties

Property Type Description
Instance AutomationServer

Public Methods

Method Description
InitializeAndStart ( UIElement visualRoot ) : void

Initializes and starts AutomationServer on default port (9998) with specified parameters.

Use it in conjuction with Instance to simplify inclusion of server in tested app.

SetAutomator ( UIElement visualRoot ) : void
Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
HandleRequest ( StreamSocket socket ) : void
ListenerConnectionReceived ( StreamSocketListener sender, StreamSocketListenerConnectionReceivedEventArgs args ) : void
WriteConnectionData ( ) : System.Threading.Tasks.Task

Method Details

InitializeAndStart() public method

Initializes and starts AutomationServer on default port (9998) with specified parameters.
Use it in conjuction with Instance to simplify inclusion of server in tested app.
public InitializeAndStart ( UIElement visualRoot ) : void
visualRoot System.Windows.UIElement ///
return void

SetAutomator() public method

public SetAutomator ( UIElement visualRoot ) : void
visualRoot System.Windows.UIElement
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Property Details

Instance public_oe static_oe property

public static AutomationServer,WindowsPhoneDriver.InnerDriver Instance
return AutomationServer