Beispiel #1
0
 public void InstallPostSharpHook(IGacDll iGacDll, string typeToHook, string methodToHook)
 {
     if (false == PostSharpUtils.containsO2PostSharpHooks(iGacDll.fullPath))
     {
         IISDeployment.kill_IIS_Process_W3wp();
         BackupRestoreFiles.backup(iGacDll.fullPath);
         if (PostSharpExecution.InsertHooksAndRunPostSharpOnAssembly(iGacDll.fullPath, typeToHook, methodToHook))
         {
             DI.log.debug("PostSharp hooks installed on Gac Assembly: {0} (in {1})", iGacDll.name, iGacDll.fullPath);
         }
     }
     showGacAssemblyDetails(iGacDll, false);
     //throw new NotImplementedException();
 }
Beispiel #2
0
 public void UnInstallPostSharpHook(IGacDll iGacDll)
 {
     if (false == BackupRestoreFiles.doesBackupExist(iGacDll.fullPath))
     {
         DI.log.error("Error in UnInstallPostSharpHook, could not find backup file for file: {0}", iGacDll.fullPath);
     }
     else
     {
         IISDeployment.kill_IIS_Process_W3wp();
         if (BackupRestoreFiles.restore(iGacDll.fullPath))
         {
             DI.log.debug("Gac Assembly uninstalled/restored: {0} (in {1})", iGacDll.name, iGacDll.fullPath);
         }
     }
     showGacAssemblyDetails(iGacDll, false);
     //throw new NotImplementedException();
 }