private static string GetConnectionString() { var configuration = WebConfiguration.Load(new HttpServerUtilityWrapper(HttpContext.Current.Server)); if (string.IsNullOrEmpty(configuration.DependencyGraphConnectionString)) { throw new ArgumentException("Must have DependencyGraphConnectionString in web.config"); } return(configuration.DependencyGraphConnectionString); }
private WebConfiguration GetWebConfiguration(IContext context) { var configuration = WebConfiguration.Load(new HttpServerUtilityWrapper(HttpContext.Current.Server)); return(configuration); }