public override void OnConfigLoad()
{
if (app != null)
{
//Initialize VFS
var env = app.ApplicationServices.GetService<IHostingEnvironment>();
Config.WebHostPhysicalPath = env.WebRootPath ?? env.ContentRootPath;
AppHostBase.RegisterLicenseFromAppSettings(AppSettings);
Config.MetadataRedirectPath = "metadata";
}
}