/src/LinFu.AOP/Interfaces/IPdbLoader.cs
http://github.com/philiplaureano/LinFu · C# · 32 lines · 11 code · 4 blank · 17 comment · 0 complexity · 5d35dc45adc3264de6f657c07e1e8ca4 MD5 · raw file
- using System.Reflection;
- using Mono.Cecil;
- namespace LinFu.AOP.Cecil.Interfaces
- {
- /// <summary>
- /// Represents a type that can load PDB files from disk.
- /// </summary>
- public interface IPdbLoader
- {
- /// <summary>
- /// Loads an assembly into memory.
- /// </summary>
- /// <param name="assemblyArray">The bytes that represent the target assembly.</param>
- /// <param name="pdbBytes">The bytes that represent the PDB file.</param>
- /// <returns>A <see cref="System.Reflection.Assembly" /> that represents the loaded assembly.</returns>
- Assembly LoadAssembly(byte[] assemblyArray, byte[] pdbBytes);
- /// <summary>
- /// Loads the debug symbols from the target <paramref name="assembly" />.
- /// </summary>
- /// <param name="assembly">The assembly that contains the symbols to be loaded.</param>
- void LoadSymbols(AssemblyDefinition assembly);
- /// <summary>
- /// Saves the debug symbols for the target<paramref name="targetAssembly" />.
- /// </summary>
- /// <param name="targetAssembly">The assembly that contains the symbols to be saved.</param>
- void SaveSymbols(AssemblyDefinition targetAssembly);
- }
- }