grass valley developers

Home > APIs > AppServer API > Examples > Connection and System Status > Create an AppServer

Create an AppServer

The code below shows how to create an AppServer. You will need to pass in a unique suite name and the name of your client application. See Suspending and Closing AppServers for an explanation of when an existing AppServer would be returned.

[C#]
bool newConnection = false;
IAppServer iappServer = appServerMgrProxy.CreateAppServer("YourSuiteName", 
 "YourClientApplicationName", out newConnection);

// ... do some work ...

iappServer.CloseConnection(); // or
iappServer.SuspendConnection();
[C++] 
short nNewConnection;
IAppServerPtr spAppServer;
hr = spAppServerMgrProxy->CreateAppServer(_bstr_t("YourSuiteName", 
 _bstr_t("YourClientApplicationName"), &nNewConnection, &spAppServer);

// ... do some work ...

spAppServer->CloseConnection(); // or
spAppServer->SuspendConnection();