C# client
Overview
The C# client is compatible with .NET Framework version 4.0 and above.
Configure the project
In a Visual Studio project, it is necessary to include the DLL files available either:
- In the NuGet website
- In the NeoLoad installation directory:
- in the <install-dir>\api\Design API Client\Csharp folder
- in the <install-dir>\api\Common\Csharp folder
- To configure the project with DLLs from NuGet
- Open the project.
- Open the Solution Explorer.
- Find the References node in the project tree.
- Click right and choose Manage NuGet Packages....
- In the Search field, type: "neotys design".
- Select dependency name: "NeotysRestDesignAPI".
- Click the Install button.
- To configure the project with DLLs from the NeoLoad installation directory
- Open the project.
- Open the Solution Explorer.
- Find the References node in the project tree.
- Right click and choose Add Reference.
- Click on Browse then Browse....
- Locate and choose the Neotys Design API DLL file: NeotysDesignAPI.dll.
Note: Make sure the NeotysDesignAPI.xml file is in the same directory to allow method descriptions when calling API methods.
- Click OK.
Create the C# Design API client
using Neotys.DesignAPI.Client;namespace Design{class CreateClient{static void Main(string[] args){string url = "http://localhost:7400/Design/v1/Service.svc/";IDesignAPIClient client = DesignAPIClientFactory.NewClient(url);}}}
Home