Ejemplo n.º 1
0
        public static bool DisconnectInternal(int sessionId)
        {
            ExecutionServiceClient           executionServiceClient = ExecutionServiceClient.Connect();
            ExecutionServiceClientConnection connection             = executionServiceClient.BeginConnection("TestRuntime", true);

            return(connection.UserSessionDisconnect(sessionId));
        }
Ejemplo n.º 2
0
        public static int GetConsoleSessionIdInternal()
        {
            ExecutionServiceClient           executionServiceClient = ExecutionServiceClient.Connect();
            ExecutionServiceClientConnection connection             = executionServiceClient.BeginConnection("TestRuntime", true);

            return(connection.UserSessionGetConsoleSessionId());
        }
Ejemplo n.º 3
0
        public bool EndConnection(ExecutionServiceClientConnection connection)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }

            return(proxy.EndConnection(connection.Name, connection.Id));
        }