예제 #1
0
        private void insertHooksIntoNewAssembly()
        {
            var sourceAssembly = sourceCodeEditor.compiledAssembly.Location;
            var hookedAssembly = DI.config.getTempFileInTempDirectory(Path.GetFileName(sourceAssembly));

            PostSharpExecution.InsertHooksAndRunPostSharpOnAssembly(sourceAssembly, hookedAssembly);
        }
예제 #2
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();
 }