public JasperRegistry() { Configuration.SetBasePath(Directory.GetCurrentDirectory()); Publish = new PublishingExpression(Messaging); HttpRoutes = new HttpSettings(Messaging.Settings); Services = _applicationServices; establishApplicationAssembly(); deriveServiceName(); var name = ApplicationAssembly?.GetName().Name ?? "JasperApplication"; CodeGeneration = new GenerationRules($"{name.Replace(".", "_")}_Generated"); _baseServices = new JasperServiceRegistry(this); Settings = new JasperSettings(this); Settings.Require <SubscriptionSettings>(); Settings.Replace(Messaging.Settings); Settings.Replace(Messaging.Settings.Http); Hosting = this; // ASP.Net Core will freak out if this isn't there EnvironmentConfiguration[WebHostDefaults.ApplicationKey] = ApplicationAssembly.FullName; Settings.Replace(HttpRoutes); }