Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NpcInjectionRunner"/> class.
        /// </summary>
        /// <param name="module">The module to feather.</param>
        /// <param name="callback">The callback object to use for progress notifications.</param>
        public NpcInjectionRunner(ModuleDefinition module, INpcInjectionCallback callback)
        {
            Contract.Requires(module != null);
            Contract.Requires(callback != null);

            this.module   = module;
            this.callback = callback;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="NpcInjectionFeather"/> class.
        /// </summary>
        /// <param name="callback">An implementation of <see cref="INpcInjectionCallback"/> that is
        /// used to notify the caller about feathered types and properties.</param>
        public NpcInjectionFeather(INpcInjectionCallback callback)
        {
            Contract.Requires(callback != null);

            this.callback = callback;
        }