24 instantiations of HostingEnvironment
Aspire.Hosting.Testing.Tests (2)
ResourceLoggerForwarderServiceTests.cs (2)
35var hostEnvironment = new HostingEnvironment(); 56var hostEnvironment = new HostingEnvironment { ApplicationName = "TestApp.AppHost" };
Microsoft.AspNetCore.HttpLogging.Tests (15)
FileLoggerProcessorTests.cs (14)
43await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 81await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 127await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 169await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 225await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), testLogger)) 249await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), testLogger2)) 283await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 296await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 322await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 372await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 384await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 437await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 450await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 506await using (var logger = new FileLoggerProcessor(monitor, new HostingEnvironment(), NullLoggerFactory.Instance))
Helpers.cs (1)
33new HostingEnvironment(),
Microsoft.AspNetCore.OpenApi.Tests (6)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Info.cs (2)
17var hostEnvironment = new HostingEnvironment 40var hostEnvironment = new HostingEnvironment
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Servers.cs (4)
17var hostEnvironment = new HostingEnvironment 41var hostEnvironment = new HostingEnvironment 66var hostEnvironment = new HostingEnvironment 90var hostEnvironment = new HostingEnvironment
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
229var hostingEnvironment = new HostingEnvironment()
13 references to HostingEnvironment
Aspire.Hosting.Testing.Tests (2)
ResourceLoggerForwarderServiceTests.cs (2)
35var hostEnvironment = new HostingEnvironment(); 56var hostEnvironment = new HostingEnvironment { ApplicationName = "TestApp.AppHost" };
Microsoft.AspNetCore.OpenApi.Tests (6)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Info.cs (2)
17var hostEnvironment = new HostingEnvironment 40var hostEnvironment = new HostingEnvironment
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Servers.cs (4)
17var hostEnvironment = new HostingEnvironment 41var hostEnvironment = new HostingEnvironment 66var hostEnvironment = new HostingEnvironment 90var hostEnvironment = new HostingEnvironment
Microsoft.Extensions.Hosting (5)
HostApplicationBuilder.cs (1)
164(HostingEnvironment hostingEnvironment, PhysicalFileProvider physicalFileProvider) = HostBuilder.CreateHostingEnvironment(Configuration);
HostBuilder.cs (4)
37private HostingEnvironment? _hostingEnvironment; 227internal static (HostingEnvironment, PhysicalFileProvider) CreateHostingEnvironment(IConfiguration hostConfiguration) 229var hostingEnvironment = new HostingEnvironment() 295HostingEnvironment hostingEnvironment,