The main class to call API methods is named HyperHive. When creating its instance specify project parameters for initialization. To do this, use the HyperHiveState class.
The example of HyperHive initialization:
Add required namespaces:
using CsWrapper;
using CsWrapper.Models;
Create an object of the HyperHiveState type that encapsulates HyperHive connection parameters:
private string uri = "suzuki4.fsight.ru/";
private string device = "desktop";
private string environment = "env";
private string project = "prj";
private string application = "app";
private int retryCount = 10;
private int retryIntervalInSeconds = 10;
var HyperHiveState = new HyperHiveState(uri, device, environment, project, application, retryCount, retryIntervalInSeconds);
Initialize the framework using the HyperHiveState class:
private readonly HyperHive _hyperHive;
_hyperHive = new HyperHive(HyperHiveState);
Example of full page code (Code behind)
NOTE. Specify all mandatory parameters, otherwise framework initialization throws the ArgumentNullException exception with a message about absence of mandatory parameter.
For details about UWP framework methods see the Describing UWP Framework Methods, Calling UWP Framework Methods sections.
To view examples of UWP framework use, see the Examples of UWP Framework Use section.
See also:
UWP Framework | Describing UWP Framework Methods | Calling UWP Framework Methods | Examples of UWP Framework Use