public static int GetConsoleSessionIdInternal() { ExecutionServiceClient executionServiceClient = ExecutionServiceClient.Connect(); ExecutionServiceClientConnection connection = executionServiceClient.BeginConnection("TestRuntime", true); return(connection.UserSessionGetConsoleSessionId()); }
public static bool DisconnectInternal(int sessionId) { ExecutionServiceClient executionServiceClient = ExecutionServiceClient.Connect(); ExecutionServiceClientConnection connection = executionServiceClient.BeginConnection("TestRuntime", true); return(connection.UserSessionDisconnect(sessionId)); }