Exemplo n.º 1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AAssemblyTransaction" /> class.
 /// </summary>
 /// <param name="assemblyFactory"></param>
 /// <param name="address">The address where the assembly code is injected.</param>
 /// <param name="autoExecute">Indicates whether the assembly code is executed once the object is disposed.</param>
 public AAssemblyTransaction(IAAssemblyFactory assemblyFactory, IntPtr address, bool autoExecute)
 {
     _assemblyFactory = assemblyFactory;
     IsAutoExecuted   = autoExecute;
     Address          = address;
     // Initialize the string builder
     Mnemonics = new StringBuilder();
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AAssemblyTransaction" /> class.
 /// </summary>
 /// <param name="assemblyFactory"></param>
 /// <param name="autoExecute">Indicates whether the assembly code is executed once the object is disposed.</param>
 public AAssemblyTransaction(IAAssemblyFactory assemblyFactory, bool autoExecute)
     : this(assemblyFactory, IntPtr.Zero, autoExecute)
 {
 }