Ejemplo n.º 1
0
 void objHttp_EntsvcUnJoin(string uName)
 {
     try
     {
         lstNodes.Remove(uName);
         channelNettcpChat.Close();
         HttpChatServer.CloseServer();
         try
         {
             AppDomain.CurrentDomain.DomainUnload       += new EventHandler(CurrentDomain_DomainUnload);
             AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
             AppDomain.Unload(AppDomain.CurrentDomain);
         }
         catch
         {
         }
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "objHttp_EntsvcUnJoin", "ChatDummy.cs");
     }
 }
Ejemplo n.º 2
0
        //void DummyClient_EntsvcSendMessage(string msg, string from, List<string> to)
        //{
        //}

        //void DummyClient_EntsvcSignOutChat(string from, List<string> to)
        //{
        //}

        //void DummyClient_EntsvcSetUserList(string uName)
        //{
        //}

        //void DummyClient_EntsvcGetUserList(string uName)
        //{
        //}

        void DummyClient_EntsvcUnJoin(string uName)
        {
            try
            {
                if (uName == this.UserName)
                {
                    channelNettcpChat.Close();
                }
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "DummyClient_EntsvcUnJoin", "P2PChatClient.cs");
            }
            try
            {
                AppDomain.CurrentDomain.DomainUnload       += new EventHandler(CurrentDomain_DomainUnload);
                AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
                AppDomain.Unload(AppDomain.CurrentDomain);
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "DummyClient_EntsvcUnJoin", "P2PChatClient.cs");
            }
        }