1 instantiation of StartupMethods
Microsoft.AspNetCore.Hosting (1)
Internal\StartupLoader.cs (1)
64
return new
StartupMethods
(instance, configureMethod.Build(instance), builder.Build());
25 references to StartupMethods
Microsoft.AspNetCore.Hosting (4)
Internal\StartupLoader.cs (1)
41
public static
StartupMethods
LoadMethods(IServiceProvider hostingServiceProvider, [DynamicallyAccessedMembers(StartupLinkerOptions.Accessibility)] Type startupType, string environmentName, object? instance = null)
Startup\ConventionBasedStartup.cs (2)
13
private readonly
StartupMethods
_methods;
15
public ConventionBasedStartup(
StartupMethods
methods)
WebHostBuilder.cs (1)
332
var
methods = StartupLoader.LoadMethods(serviceProvider, startupType, hostingEnvironment.EnvironmentName);
Microsoft.AspNetCore.Hosting.Tests (21)
StartupManagerTests.cs (21)
28
var
startup = StartupLoader.LoadMethods(services, type, "");
50
var
startup = StartupLoader.LoadMethods(services, type, "");
71
var
startup = StartupLoader.LoadMethods(services, type, "");
96
var
startup = StartupLoader.LoadMethods(services, type, "");
118
var
startup = StartupLoader.LoadMethods(services, type, "");
140
var
startup = StartupLoader.LoadMethods(services, type, "");
298
var
startup = StartupLoader.LoadMethods(services, type, "WithServices");
320
var
startup = StartupLoader.LoadMethods(services, type, "WithScopedServices");
347
var
startup = StartupLoader.LoadMethods(services, type, environment);
394
var
startup = StartupLoader.LoadMethods(services, type, environment);
457
var
startup = StartupLoader.LoadMethods(services, type, "WithNullConfigureServices");
474
var
startup = StartupLoader.LoadMethods(services, type, "WithConfigureServices");
492
var
startup = StartupLoader.LoadMethods(services, typeof(TestStartup), hostingEnv.EnvironmentName);
509
var
startup = StartupLoader.LoadMethods(services, typeof(TestStartup), "No");
524
var
startup = StartupLoader.LoadMethods(services, typeof(StartupConfigureServicesThrows), environmentName: null);
538
var
startup = StartupLoader.LoadMethods(services, typeof(StartupConfigureThrows), environmentName: null);
553
var
startup = StartupLoader.LoadMethods(services, typeof(MyContainerStartup), Environments.Development);
569
var
startup = StartupLoader.LoadMethods(services, typeof(MyContainerStartupBaseClass), Environments.Development);
585
var
startup = StartupLoader.LoadMethods(services, typeof(MyContainerStartupEnvironmentBased), Environments.Production);
600
var
startup = StartupLoader.LoadMethods(services, typeof(MyContainerStartup), Environments.Development);
631
var
startup = StartupLoader.LoadMethods(services, typeof(MyContainerStartup), Environments.Development);