18 references to ApplicationKey
Microsoft.AspNetCore (7)
ConfigureWebHostBuilder.cs (5)
45var previousApplication = _configuration[WebHostDefaults.ApplicationKey]; 59else if (!string.Equals(previousApplication, _configuration[WebHostDefaults.ApplicationKey], StringComparison.OrdinalIgnoreCase)) 62throw new NotSupportedException($"The application name changed from \"{previousApplication}\" to \"{_configuration[WebHostDefaults.ApplicationKey]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 120var previousApplication = _configuration[WebHostDefaults.ApplicationKey]; 131else if (string.Equals(key, WebHostDefaults.ApplicationKey, StringComparison.OrdinalIgnoreCase) &&
WebApplicationBuilder.cs (1)
223webHostBuilder.UseSetting(WebHostDefaults.ApplicationKey, _hostApplicationBuilder.Environment.ApplicationName ?? "");
WebHost.cs (1)
109builder.UseSetting(WebHostDefaults.ApplicationKey, applicationName);
Microsoft.AspNetCore.Hosting (10)
GenericHost\GenericWebHostBuilder.cs (4)
170UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName); 195UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName); 320UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName); 345UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName);
GenericHost\SlimWebHostBuilder.cs (1)
81UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName);
Internal\WebHostOptions.cs (1)
20ApplicationName = environment?.ApplicationName ?? GetConfig(WebHostDefaults.ApplicationKey) ?? Assembly.GetEntryAssembly()?.GetName().Name ?? string.Empty;
WebHostBuilderExtensions.cs (4)
43hostBuilder.UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName); 72hostBuilder.UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName); 102hostBuilder.UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName); 145hostBuilder.UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName);
Microsoft.AspNetCore.Hosting.Abstractions (1)
HostingAbstractionsWebHostBuilderExtensions.cs (1)
58.UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName)