Exemple #1
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");
     }
 }
 void P2PPresentationClient_EntsvcUnJoin(clsMessageContract mcUnJoin)
 {
     try
     {
         if (mcUnJoin.strFrom == this.UserName)
         {
             channelNettcpPresentation.Close();
         }
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "P2PPresentationClient_EntsvcUnJoin()/1", "P2PPresentationClient.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, "P2PPresentationClient_EntsvcUnJoin()/2", "P2PPresentationClient.cs");
     }
 }