protected void Application_Start(object sender, EventArgs e) { if (File.Exists(@"C:\src\appsettings.license.txt")) Licensing.RegisterLicenseFromFile(@"C:\src\appsettings.license.txt"); else if (string.IsNullOrEmpty(ConfigUtils.GetNullableAppSetting("servicestack:license"))) throw new ConfigurationErrorsException("A valid license key is required for this demo"); var appHost = new AppHost(); appHost.Init(); }
protected void Application_Start(object sender, EventArgs e) { if (File.Exists(@"C:\src\appsettings.license.txt")) { Licensing.RegisterLicenseFromFile(@"C:\src\appsettings.license.txt"); } else if (string.IsNullOrEmpty(ConfigUtils.GetNullableAppSetting("servicestack:license"))) { throw new ConfigurationErrorsException("A valid license key is required for this demo"); } var appHost = new AppHost(); appHost.Init(); }
protected void Application_Start(object sender, EventArgs e) { var appHost = new AppHost(); appHost.Init(); }