示例#1
0
        /// <summary>
        /// When loading a prism module (IModule.Initialize), we need to update the IoC container too.
        /// The Autofac.Module will be passed inside the <see cref="ModuleLoadEvent"/> class.
        /// </summary>
        /// <param name="e">Class containing the module configuration to be updated.</param>
        private void PrismModule_OnLoad(ModuleLoadEvent e)
        {
            var updater = new ContainerBuilder();

            updater.RegisterModule(e.Module);
            updater.Update(Container);
        }
示例#2
0
        public virtual void OnModuleLoad(DebugModuleBase debugModule,
                                         bool isLoading)
        {
            Logger.Debug(string.Empty);
            var eventObject = new ModuleLoadEvent(debugModule, isLoading);

            OnDebugEvent(eventObject, InterfaceGuids.IDebugModuleLoadEvent2Guid);
        }
示例#3
0
        public int LoadModule(ulong ImageFileHandle, ulong BaseOffset, uint ModuleSize, string ModuleName, string ImageName, uint CheckSum, uint TimeDateStamp)
        {
            ModuleLoadEvent?.Invoke(this, new ModuleEventArgs(ImageFileHandle, BaseOffset, ModuleSize, ModuleName, ImageName, CheckSum, TimeDateStamp));

            return(0);
        }