コード例 #1
0
ファイル: UserSessionHelper.cs プロジェクト: dotnet/wpf-test
        public static int GetConsoleSessionIdInternal()
        {
            ExecutionServiceClient           executionServiceClient = ExecutionServiceClient.Connect();
            ExecutionServiceClientConnection connection             = executionServiceClient.BeginConnection("TestRuntime", true);

            return(connection.UserSessionGetConsoleSessionId());
        }
コード例 #2
0
ファイル: UserSessionHelper.cs プロジェクト: dotnet/wpf-test
        public static bool DisconnectInternal(int sessionId)
        {
            ExecutionServiceClient           executionServiceClient = ExecutionServiceClient.Connect();
            ExecutionServiceClientConnection connection             = executionServiceClient.BeginConnection("TestRuntime", true);

            return(connection.UserSessionDisconnect(sessionId));
        }