public void RaiseLoadModuleCompleted(LoadModuleCompletedEventArgs e) { if (this.LoadModuleCompleted != null) { this.LoadModuleCompleted(this, e); } }
private void RaiseLoadModuleCompleted(LoadModuleCompletedEventArgs e) { this.LoadModuleCompleted?.Invoke(this, e); }
/// <summary> /// Handles the LoadModuleCompleted event of the ModuleManager control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Microsoft.Practices.Composite.Modularity.LoadModuleCompletedEventArgs"/> instance containing the event data.</param> void ModuleManager_LoadModuleCompleted(object sender, LoadModuleCompletedEventArgs e) { this.moduleTracker.RecordModuleLoaded(e.ModuleInfo.ModuleName); }
private void IModuleTypeLoader_LoadModuleCompleted(object sender, LoadModuleCompletedEventArgs e) { if (e.Error == null) { if ((e.ModuleInfo.State != ModuleState.Initializing) && (e.ModuleInfo.State != ModuleState.Initialized)) { e.ModuleInfo.State = ModuleState.ReadyForInitialization; } // This callback may call back on the UI thread, but we are not guaranteeing it. // If you were to add a custom retriever that retrieved in the background, you // would need to consider dispatching to the UI thread. this.LoadModulesThatAreReadyForLoad(); } else { this.RaiseLoadModuleCompleted(e); // If the error is not handled then I log it and raise an exception. if (!e.IsErrorHandled) { this.HandleModuleTypeLoadingError(e.ModuleInfo, e.Error); } } }