1 implementation of EnvironmentName
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEnvironment.cs (1)
14public string EnvironmentName { get; set; } = Extensions.Hosting.Environments.Production;
1 write to EnvironmentName
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEnvironmentExtensions.cs (1)
55hostingEnvironment.EnvironmentName =
9 references to EnvironmentName
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEnvironmentExtensions.cs (1)
57hostingEnvironment.EnvironmentName;
Microsoft.AspNetCore.Hosting.Abstractions (1)
HostingEnvironmentExtensions.cs (1)
61hostingEnvironment.EnvironmentName,
Microsoft.AspNetCore.Hosting.Tests (3)
WebHostBuilderTests.cs (1)
614Assert.Equal(expected, host.Services.GetService<AspNetCore.Hosting.IHostingEnvironment>().EnvironmentName);
WebHostTests.cs (2)
719Assert.Equal("Changed", env2.EnvironmentName); 806Assert.Equal(Environments.Production, env2.EnvironmentName);
Microsoft.AspNetCore.Mvc.TagHelpers (4)
EnvironmentTagHelper.cs (4)
12/// content based on the current value of <see cref="IHostingEnvironment.EnvironmentName"/>. 38/// <see cref="IHostingEnvironment.EnvironmentName"/>. 48/// <see cref="IHostingEnvironment.EnvironmentName"/>. 57/// <see cref="IHostingEnvironment.EnvironmentName"/>.