void OnConfigurationCompleted(object sender, EnterpriseLibraryConfigurationCompletedEventArgs e) { if (!e.ConfiguredSuccessfully) { throw new InvalidOperationException("Configuration Failed", e.Error); } enterpriseLibraryConfigured = true; }
private void OnConfigurationCompleted(object sender, EnterpriseLibraryConfigurationCompletedEventArgs e) { if (e.ConfiguredSuccessfully == false) { throw new InvalidOperationException("Configuration Failed", e.Error); } IUnityContainer container = EnterpriseLibraryContainer.Current.GetInstance <IUnityContainer>(); container.RegisterType <ILogFacade, EnterpriseLibraryLoggerFacade>(new ContainerControlledLifetimeManager()); this.RootVisual = EnterpriseLibraryContainer.Current.GetInstance <MainPage>(); }