コード例 #1
0
        protected override void TestCleanup()
        {
            base.TestCleanup();

            rdpbcgrServer.Dispose();

            this.TestSite.Log.Add(LogEntryKind.Comment, "Trigger client to close all RDP connections for clean up.");
            int iResult = this.sutControlAdapter.TriggerClientDisconnectAll();

            this.TestSite.Log.Add(LogEntryKind.Debug, "The result of TriggerClientDisconnectAll is {0}.", iResult);

            if (rdpemtServerL != null)
            {
                rdpemtServerL.Dispose();
            }

            if (rdpemtServerR != null)
            {
                rdpemtServerR.Dispose();
            }
            if (rdpeudpServer != null && rdpeudpServer.Running)
            {
                rdpeudpServer.Stop();
            }

            this.TestSite.Log.Add(LogEntryKind.Comment, "Stop RDP listening.");
            this.rdpbcgrAdapter.StopRDPListening();
        }
コード例 #2
0
        protected override void TestCleanup()
        {
            base.TestCleanup();

            rdpbcgrServer?.Dispose();

            if (rdpedycServer != null)
            {
                rdpedycServer.Dispose();
            }

            this.TestSite.Log.Add(LogEntryKind.Comment, "Trigger client to close all RDP connections for clean up.");

            TriggerClientDisconnectAll();

            if (rdpemtServerL != null)
            {
                rdpemtServerL.Dispose();
            }

            if (rdpemtServerR != null)
            {
                rdpemtServerR.Dispose();
            }
            if (rdpeudpServer != null)
            {
                rdpeudpServer.Stop();
            }
            if (rdpeudpSocketR != null && rdpeudpSocketR.Connected)
            {
                rdpeudpSocketR.Close();
            }
            if (rdpeudpSocketL != null && rdpeudpSocketL.Connected)
            {
                rdpeudpSocketL.Close();
            }

            this.TestSite.Log.Add(LogEntryKind.Comment, "Stop RDP listening.");
            this.rdpbcgrAdapter?.StopRDPListening();
        }