Example #1
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
            //{
            //}
        }
Example #2
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");
     }
 }
Example #3
0
 void FileSearchDummy_EntsvcHttpUnJoin(string uName)
 {
     try
     {
         lstLocalBuddyList.Remove(uName);
         NetP2PChannel.svcUnJoin(uName);
         NetP2PChannel.Close();
         HttpFileSearchServer.CloseServer();
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "FileSearchDummy_EntsvcHttpUnJoin", "FileSearchDummy.cs");
     }
     try
     {
         AppDomain.CurrentDomain.DomainUnload       += new EventHandler(CurrentDomain_DomainUnload);
         AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
         AppDomain.Unload(AppDomain.CurrentDomain);
     }
     catch
     {
     }
 }
Example #4
0
 void PresentationDummy_EntsvcUnJoin(clsMessageContract mcUnJoin)
 {
     try
     {
         channelNettcpPresentation.svcUnJoin(mcUnJoin);
         channelNettcpPresentation.Close();
         HttpPresentationServer.CloseServer();
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "PresentationDummy_EntsvcUnJoin()/1", "PresentationDummy.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, "PresentationDummy_EntsvcUnJoin()/2", "PresentationDummy.cs");
     }
 }