SetContainer
Description
The SetContainer method specifies the current Transaction name to record in. It is just a single level Transaction (there is no way to specify a tree of Transactions).
Parameters
- Name (required): The name of the Transaction (if the name is already used then it will be made unique by adding _1, _2, etc.).
- ApiKey (optional): To authenticate the command. Required if enabled on the Controller.
REST example
POST http://localhost:7400/Design/v1/Service.svc/SetContainer HTTP/1.1Accept: application/jsonContent-Type:application/jsonCache-Control:nocachePragma: nocacheUser-Agent:Java/1.7.0_10Host: localhost:7400Connection: keepaliveContent-Length:212{"d": {"Name": "myContainerName"}}Use case with Command Line Designer
java -cp "api/Common/java/*;api/Design API Client/java/*" com.neotys.rest.design.client.CommandLineDesigner -designAPIURL http://localhost:7400/Design/v1/Service.svc/ -command SetContainer -Name myContainerNameUse case with Java Client Designer
import com.neotys.rest.design.client.DesignAPIClient;import com.neotys.rest.design.client.DesignAPIClientFactory;import com.neotys.rest.design.model.SetContainerParams;public class Main {public static void main(String[] args) throws Exception {final String url = "http://localhost:7400/Design/v1/Service.svc";final DesignAPIClient client = DesignAPIClientFactory.newClient(url);final SetContainerParams setContainer = new SetContainerParams("containerName");client.setContainer(setContainer);}}Use case with C#Client
using Neotys.DesignAPI.Client;using Neotys.DesignAPI.Model;namespace Design{class SetContainer{static void Main(string[] args){string url = "http://localhost:7400/Design/v1/Service.svc/";IDesignAPIClient client = DesignAPIClientFactory.NewClient(url);client.SetContainer(new SetContainerParams("containerName"));}}}
Home