public UmbracoApplicationProxy(IDisposable realUmbracoApp, Assembly umbracoCoreAssembly) { _realUmbracoApp = realUmbracoApp; //start the app with reflection _realUmbracoApp.CallMethod("StartApplication", infos => infos.FirstOrDefault(x => x.IsPublic)); var realAppContext = (IDisposable)umbracoCoreAssembly.GetType("Umbraco.Core.ApplicationContext").GetStaticProperty("Current"); ApplicationContext = new UmbracoApplicationContextProxy(realAppContext); }