Example #1
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 #2
0
 void P2PFileSearchClient_EntsvcUnJoin(string uName)
 {
     try
     {
         if (uName == this.UserName)
         {
             channelNettcpFileTransfer.Close();
         }
     }
     catch (Exception exp)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "P2PFileSearchClient_EntsvcUnJoin", "P2PFileSearchClient.cs");
     }
     try
     {
         AppDomain.CurrentDomain.DomainUnload       += new EventHandler(CurrentDomain_DomainUnload);
         AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
         AppDomain.Unload(AppDomain.CurrentDomain);
     }
     catch (Exception exp)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "P2PFileSearchClient_EntsvcUnJoin", "P2PFileSearchClient.cs");
     }
 }