Esempio n. 1
0
 private void oBW_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         AppContainer[] appContainers = AppContainer.GetAppContainers(bIsDevPreviewBuild, bIsWin8Beta, (bool)e.Argument);
         if (appContainers == null)
         {
             throw new Exception("Unable to enumerate AppContainers. Is the Windows Firewall Service started?");
         }
         AppContainer.MarkLoopbackExemptAppContainers(appContainers);
         e.Result = appContainers;
     }
     catch (Exception ex)
     {
         Exception ex3 = (Exception)(e.Result = ex);
     }
 }