protected void Application_Start(object sender, EventArgs e) { var configSource = new WebConfigurationSource(); var bootstrapperConfig = new UnityBootstrapperConfiguration(configSource); var bootstrapper = new UnityBootstrapper(bootstrapperConfig); bootstrapper.Startup(); }
/// <summary> /// Button click event to trigger testing of selected web configuration. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The event arguments.</param> private void btnTestWebConfig_Click(object sender, EventArgs e) { IConfigurationSource configurationSource = new WebConfigurationSource( this.comboWebSites.Text, this.comboWebApplications.Text); this.RunConnectionTests(configurationSource, Resources.CONFIG_SOURCE_INHERITED_TEXT); }