Class
Communicator

The Communicator is used by the QA/Results viewer to get the results of the test runs and to push scheduled runs to the server It also holds the WCF Channel proxy creation

Definition

Namespace:ArtOfTest.WebAii.Design.Execution.Scheduling

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public sealed class Communicator

Inheritance: objectCommunicator

Constructors

Communicator()

Declaration

cs-api-definition
public Communicator()

Fields

SchedulingClientExePath

Declaration

cs-api-definition
public static readonly string SchedulingClientExePath

Field Value

string

Properties

DefaultServiceUrl

Gets the default service URL.

Declaration

cs-api-definition
public static string DefaultServiceUrl { get; }

Property Value

string

The default service URL.

IsSchedulingServiceChannelOpen

Gets or sets a value indicating whether the Scheduling service channel is open.

Declaration

cs-api-definition
public static bool IsSchedulingServiceChannelOpen { get; }

Property Value

bool

true if this instance is scheduling service channel open; otherwise, false.

SchedulingServer

Gets the scheduling service proxy.

Declaration

cs-api-definition
public static IExecutionManagerCommunicationLayer SchedulingServer { get; }

Property Value

IExecutionManagerCommunicationLayer

The scheduling service.

SchedulingServiceChannelError

Gets or sets the scheduling service channel error if any.

Declaration

cs-api-definition
public static string SchedulingServiceChannelError { get; }

Property Value

string

The scheduling service channel error.

Methods

GetCloudDataBusAsync()

Declaration

cs-api-definition
public static Task<IRepositoryDataBus> GetCloudDataBusAsync()

Returns

Task<IRepositoryDataBus>

GetStorageServiceUri()

Declaration

cs-api-definition
public static Task<Uri> GetStorageServiceUri()

Returns

Task<Uri>

OpenChannel(string)

Opens channel to any given machine. This includes Server->Client and Clien->Server connections

Declaration

cs-api-definition
public static IExecutionManagerCommunicationLayer OpenChannel(string url)

Parameters

url

string

The URL.

Returns

IExecutionManagerCommunicationLayer

OpenChannelAsync(string)

Async initialize of scheduling service comm layer

Declaration

cs-api-definition
public static Task<IExecutionManagerCommunicationLayer> OpenChannelAsync(string url)

Parameters

url

string

Returns

Task<IExecutionManagerCommunicationLayer>

RefreshSchedulingServerAsync()

Update the SchedulingServer to reflect the latest connection settings

Declaration

cs-api-definition
public static Task RefreshSchedulingServerAsync()

Returns

Task

Events

Connected

This is a async event

Declaration

cs-api-definition
public static event EventHandler Connected

Event Value

EventHandler

ServerDown

This event is fired from a worker thread. Be careful with the UI changes.

Declaration

cs-api-definition
public static event EventHandler ServerDown

Event Value

EventHandler