18 references to HostingStartupAssembliesKey
Microsoft.AspNetCore (7)
ConfigureWebHostBuilder.cs (5)
45
var previousHostingStartupAssemblies = _configuration[WebHostDefaults.
HostingStartupAssembliesKey
];
73
else if (!string.Equals(previousHostingStartupAssemblies, _configuration[WebHostDefaults.
HostingStartupAssembliesKey
], StringComparison.OrdinalIgnoreCase))
76
throw new NotSupportedException($"The hosting startup assemblies changed from \"{previousHostingStartupAssemblies}\" to \"{_configuration[WebHostDefaults.
HostingStartupAssembliesKey
]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead.");
120
var previousHostingStartupAssemblies = _configuration[WebHostDefaults.
HostingStartupAssembliesKey
];
147
else if (string.Equals(key, WebHostDefaults.
HostingStartupAssembliesKey
, StringComparison.OrdinalIgnoreCase) &&
WebApplicationBuilder.cs (2)
223
webHostBuilder.UseSetting(WebHostDefaults.
HostingStartupAssembliesKey
, Configuration[WebHostDefaults.
HostingStartupAssembliesKey
]);
Microsoft.AspNetCore.Hosting (1)
Internal\WebHostOptions.cs (1)
33
HostingStartupAssemblies = Split(ApplicationName, GetConfig(WebHostDefaults.
HostingStartupAssembliesKey
));
Microsoft.AspNetCore.Hosting.Tests (8)
WebHostBuilderTests.cs (8)
297
{ WebHostDefaults.
HostingStartupAssembliesKey
, assemblyName }
890
.UseSetting(WebHostDefaults.
HostingStartupAssembliesKey
, typeof(TestStartupAssembly1.TestHostingStartup1).GetTypeInfo().Assembly.FullName)
910
.UseSetting(WebHostDefaults.
HostingStartupAssembliesKey
, fullName + ";" + name)
927
.UseSetting(WebHostDefaults.
HostingStartupAssembliesKey
, typeof(TestStartupAssembly1.TestHostingStartup1).GetTypeInfo().Assembly.FullName)
947
.UseSetting(WebHostDefaults.
HostingStartupAssembliesKey
, typeof(WebHostBuilderTests).GetTypeInfo().Assembly.FullName)
1047
.UseSetting(WebHostDefaults.
HostingStartupAssembliesKey
, typeof(TestStartupAssembly1.TestHostingStartup1).GetTypeInfo().Assembly.FullName)
1181
.UseSetting(WebHostDefaults.
HostingStartupAssembliesKey
, "SomeBogusName")
1202
.UseSetting(WebHostDefaults.
HostingStartupAssembliesKey
, "SomeBogusName")
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
397
Assert.Throws<NotSupportedException>(() => builder.WebHost.UseSetting(WebHostDefaults.
HostingStartupAssembliesKey
, "hosting"));
449
{ WebHostDefaults.
HostingStartupAssembliesKey
, "hosting" }