Interface IRemoteEndpointService
Service to interact with remote endpoints like mobile devices.
public interface IRemoteEndpointService
Properties
AllKnownEndpoints
List of all enabled Endpoints
ICollection<IRemoteEndpoint> AllKnownEndpoints { get; }
Property Value
ConnectTimeout
Configured connect timeout for remote endpoints.
TimeSpan ConnectTimeout { get; }
Property Value
Methods
AddDevice(string, RemotePlatform, RemoteConnectionType, string)
Add a device temporary for this session.
IRemoteEndpoint AddDevice(string name, RemotePlatform platform, RemoteConnectionType type, string address)
Parameters
namestringDevice name
platformRemotePlatformDevice platform (e.g. Android)
typeRemoteConnectionTypeConnection type (e.g. Usb)
addressstringDevice identification address. (e.g. IP-Address of network connections; device serial for usb connections)
Returns
- IRemoteEndpoint
New endpoint instance
AddDevice(string, RemotePlatform, RemoteConnectionType, string, int, int)
Add a device temporary for this session.
IRemoteEndpoint AddDevice(string name, RemotePlatform platform, RemoteConnectionType type, string address, int devicePort, int discoveryPort)
Parameters
namestringDevice name
platformRemotePlatformDevice platform (e.g. Android)
typeRemoteConnectionTypeConnection type (e.g. Usb)
addressstringDevice identification address. (e.g. IP-Address of network connections; device serial for usb connections)
devicePortintDevice TCP port 0..65535, default value is 31000. It should be the same as in Ranorex Services application.
discoveryPortintDiscovery UDP port 0..65535, default value is 31000. It should be the same as in Ranorex Services application.
Returns
- IRemoteEndpoint
New endpoint instance
CreateControl<T>()
Creates Plugin control instances. Not recommended for public use.
T CreateControl<T>()
Returns
- T
Control instance
Type Parameters
TControl interface to instantiate
Exists(IRemoteEndpointInformation)
Checks if an endpoint exists for given information.
bool Exists(IRemoteEndpointInformation info)
Parameters
infoIRemoteEndpointInformationendpoint information
Returns
- bool
true if endpoint exists
GetByDisplayName(string)
Returns the endpoint with given display name if exists.
IRemoteEndpoint GetByDisplayName(string displayName)
Parameters
displayNamestringEndpoint display name. e.g. Nexus S
Returns
- IRemoteEndpoint
existing endpoint instance
GetRemoteEndpointFromInfo(IRemoteEndpointInformation)
Returns the matching endpoint to an endpoint information object.
IRemoteEndpoint GetRemoteEndpointFromInfo(IRemoteEndpointInformation info)
Parameters
infoIRemoteEndpointInformationendpoint information
Returns
- IRemoteEndpoint
existing endpoint instance
InstallRxBrowser(IRemoteEndpointInformation, DeployProcessChangedDelegate, Action<Exception>)
Deploys browser app to device.
void InstallRxBrowser(IRemoteEndpointInformation info, DeployProcessChangedDelegate progress, Action<Exception> onFailed)
Parameters
infoIRemoteEndpointInformationDevice information
progressDeployProcessChangedDelegateProgress changed delegate
onFailedAction<Exception>Action delegate being invoked if an exception occurs.
Refresh()
Refreshes all endpoints. Reloads information and tries to connect endpoints.
void Refresh()
Resolve<T>()
Resolves a service.
T Resolve<T>()
Returns
- T
A instance for the specified service type. Supported types are IDeviceDiscoveryServiceFactory
Type Parameters
TThe type of service to resolve.
Exceptions
- InvalidOperationException
When resolving the service fails.
Events
EndpointsChangedEvent
Event that indicates status changes from endpoints.
event EventHandler EndpointsChangedEvent