Beispiel #1
0
        void P2PWhiteBoardClient_ESignOutChat(string from, List <string> to)
        {
            try
            {
                if (from == this.UserName)
                {
                    channelNettcpWhiteBoard.Close();
                }
            }
            catch (Exception exp)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "P2PWhiteBoardClient_ESignOutChat() -1", "P2PWhiteBoardClient.cs");
            }
            //try
            //{
            //    AppDomain.CurrentDomain.DomainUnload += new EventHandler(CurrentDomain_DomainUnload);
            //    AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
            //    AppDomain.Unload(AppDomain.CurrentDomain);

            //}
            //catch (Exception exp)
            //{
            //    VMuktiHelper.ExceptionHandler(exp,"P2PWhiteBoardClient_ESignOutChat()","P2PWhiteBoardClient.cs");
            //}
        }
Beispiel #2
0
        void WhiteboardDummy_ESignOutChat(string from, List <string> to)
        {
            try
            {
                channelNettcpWhiteboard.svcSignOutChat(from, to);
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "WhiteboardDummy_ESignOutChat()", "WhiteBoardDummy.cs");
            }

            try
            {
                lstNodes.Remove(from);
                channelNettcpWhiteboard.Close();
                HttpWhiteboardServer.CloseServer();
            }

            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "WhiteboardDummy_ESignOutChat()", "WhiteboardDummy.cs");
            }

            //try
            //{
            //    AppDomain.CurrentDomain.DomainUnload += new EventHandler(CurrentDomain_DomainUnload);
            //    AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
            //    AppDomain.Unload(AppDomain.CurrentDomain);
            //}
            //catch
            //{
            //}
        }