2 writes to HostingEnvironment
Microsoft.Extensions.Hosting (2)
28 references to HostingEnvironment
Kestrel.SampleApp (1)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.Hosting (7)
Microsoft.AspNetCore.Tests (14)
WebApplicationTests.cs (14)
808Assert.Equal(nameof(WebApplicationTests), context.HostingEnvironment.ApplicationName);
809Assert.Equal(envName, context.HostingEnvironment.EnvironmentName);
810Assert.Equal(contentRoot, context.HostingEnvironment.ContentRootPath);
857Assert.Equal(nameof(WebApplicationTests), context.HostingEnvironment.ApplicationName);
858Assert.Equal(envName, context.HostingEnvironment.EnvironmentName);
859Assert.Equal(contentRoot, context.HostingEnvironment.ContentRootPath);
903Assert.Equal(nameof(WebApplicationTests), context.HostingEnvironment.ApplicationName);
904Assert.Equal(envName, context.HostingEnvironment.EnvironmentName);
905Assert.Equal(contentRoot, context.HostingEnvironment.ContentRootPath);
934Assert.Equal(assemblyName, context.HostingEnvironment.ApplicationName);
941Assert.Equal(assemblyName, context.HostingEnvironment.ApplicationName);
976Assert.Equal(assemblyName, context.HostingEnvironment.ApplicationName);
983Assert.Equal(assemblyName, context.HostingEnvironment.ApplicationName);
1056Assert.Equal("Testing", context.HostingEnvironment.EnvironmentName);
Microsoft.Extensions.AmbientMetadata.Application (1)
Microsoft.Extensions.Hosting (4)