Open topic with navigation

SDK Class
The LeanFT SDK base class.

C# Syntax

    public class SDK

Example

    // The following code example configures an address for the server.

    static void Main(string[] args)
    {
        // Initialize the SDK and LeanFT HTML report once per process.
        SDK.Init(new SdkConfiguration
        {
            ServerAddress = new Uri("ws://myServerAddress:5095")
        });
        Reporter.Init(new ReportConfiguration());

        //Put your test code here.

        //Generate the report.
        Reporter.GenerateReport();
        // Cleanup the SDK usage.
        SDK.Cleanup();
    }

Inheritance Hierarchy

System.Object
HP.LFT.SDK.SDK

Public Constructors

| Name | Description
--- | --- | ---
| SDK Constructor |

Top
Public Properties

| Name | Description
--- | --- | ---
| Configuration | The SDK configuration.
| IsServerReady | Indicates whether the runtime engine is ready for communication connections.

Top
Public Methods

| Name | Description
--- | --- | ---
| Cleanup | Performs an SDK cleanup when connection ends.
| Init | Initializes the SDK with the specified configuration.

Top