32 this IWebHostBuilder builder,
37 ArgumentNullException.ThrowIfNull(builder);
38 ArgumentNullException.ThrowIfNull(assemblyInformationProvider);
39 ArgumentNullException.ThrowIfNull(ioManager);
40 ArgumentNullException.ThrowIfNull(postSetupServices);
42 return builder.ConfigureServices(
43 (context, services) =>
45 var application =
new Application(context.Configuration, context.HostingEnvironment);
46 application.ConfigureServices(services, assemblyInformationProvider, ioManager, postSetupServices);
47 services.AddSingleton(application);
62 applicationBuilder.ApplicationServices.GetRequiredService<
IServerControl>(),
63 applicationBuilder.ApplicationServices.GetRequiredService<
ITokenFactory>(),
66 applicationBuilder.ApplicationServices.GetRequiredService<IOptions<ControlPanelConfiguration>>(),
67 applicationBuilder.ApplicationServices.GetRequiredService<IOptions<GeneralConfiguration>>(),
68 applicationBuilder.ApplicationServices.GetRequiredService<IOptions<DatabaseConfiguration>>(),
69 applicationBuilder.ApplicationServices.GetRequiredService<IOptions<SwarmConfiguration>>(),
70 applicationBuilder.ApplicationServices.GetRequiredService<IOptions<InternalConfiguration>>(),
71 applicationBuilder.ApplicationServices.GetRequiredService<ILogger<Application>>());
static IWebHostBuilder UseApplication(this IWebHostBuilder builder, IAssemblyInformationProvider assemblyInformationProvider, IIOManager ioManager, IPostSetupServices postSetupServices)
Workaround for using the Application class for server startup.
Set of objects needed to configure an Core.Application.