public void Register(IAppHost appHost)
{
this.ScanRootPath = this.ScanRootPath ?? appHost.Config.WebHostPhysicalPath;
this.VirtualPathProvider = VirtualPathProvider ?? appHost.VirtualPathProvider;
this.WebHostUrl = WebHostUrl ?? appHost.Config.WebHostUrl;
this.EnableLiveReload = this.EnableLiveReload ?? appHost.Config.DebugMode;
try
{
Init();
BindToAppHost(appHost);
}
catch (Exception ex)
{
appHost.NotifyStartupException(ex);
throw;
}
}